Cache error message

I want to follow along Kevin's YouTube video: "Turn static HTML/CSS into a blog with CMS using the JAMStack". When I run the "npm start" command, I get the following error messages:
[23040:1122/181852.630:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access denied. (0x5)
[23040:1122/181852.630:ERROR:disk_cache.cc(208)] Unable to create cache
[23040:1122/181852.630:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access denied. (0x5)
[23040:1122/181852.630:ERROR:disk_cache.cc(208)] Unable to create cache
I have tried clearing the browser cache, running Chrome as Administrator, and deleting the Cache folder in the Chrome folder, but nothing works. Please help - this is why I prefer the Front of the Front-End! šŸ˜’
38 Replies
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
do you know where that cache is? the message is supposed to have a path somewhere
Islandstone
IslandstoneOPā€¢3mo ago
No. It seems it's a Chromium source file. Searching for it on the computer yields no results.
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
whats the entire output?
Islandstone
IslandstoneOPā€¢3mo ago
> eleventy --serve


[21072:1122/201622.609:ERROR:cache_util_win.cc(20)] Unable to move the cache: Ingen tilgang. (0x5)
[21072:1122/201622.609:ERROR:disk_cache.cc(208)] Unable to create cache
PS C:\DATA\Web Design\EXPERIMENTATION\eleventy-test\11ty-blog-site>
> eleventy --serve


[21072:1122/201622.609:ERROR:cache_util_win.cc(20)] Unable to move the cache: Ingen tilgang. (0x5)
[21072:1122/201622.609:ERROR:disk_cache.cc(208)] Unable to create cache
PS C:\DATA\Web Design\EXPERIMENTATION\eleventy-test\11ty-blog-site>
"Ingen tilgang" meaning "access denied".
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
yikes! do you have the configuration file?
Islandstone
IslandstoneOPā€¢3mo ago
module.exports = function(eleventyConfig) {

return {
dir: {
input: "src",
output: "public"
}
};
}
module.exports = function(eleventyConfig) {

return {
dir: {
input: "src",
output: "public"
}
};
}
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
do you have a .cache folder?
Islandstone
IslandstoneOPā€¢3mo ago
No
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
and there isn't a cache folder anywhere?
clevermissfox
clevermissfoxā€¢3mo ago
And make sure your settings are showing hidden field Whoops OPs settings
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
oh, yeah, that too
Islandstone
IslandstoneOPā€¢3mo ago
There is a cache folder for Google Chrome, where I have deleted most of the files. I have also checked the Permissions for this folder. Yup, hidden elements are shown in File Explorer.
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
did you checked the permissions of the folder you have the project in?
Islandstone
IslandstoneOPā€¢3mo ago
Yes
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
did you made sure that everybody has access to it?
Islandstone
IslandstoneOPā€¢3mo ago
I just tried running "npm start" from the Windows Terminal instead of the terminal in VS Code. Same result...
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
and have you tried to reinstall the modules?
Islandstone
IslandstoneOPā€¢3mo ago
node_modules?
Jochem
Jochemā€¢3mo ago
Unless I severely misuderstand the project, this has nothing to do with your browser cache
Islandstone
IslandstoneOPā€¢3mo ago
Chat GTP says it is..."The error message you're encountering indicates that Google Chrome is unable to move the cache files, and the specific error code 0x5 corresponds to an "Access Denied" issue"
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
šŸ¤¦ you're listening to an hallucination
Jochem
Jochemā€¢3mo ago
you're getting this from NPM though, which has nothing to do with your browser
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
and yes
Islandstone
IslandstoneOPā€¢3mo ago
Ah. Maybe I should try just deleting all the files, and start from scratch?
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
try renaming the folder instead, so you don't lose it
Jochem
Jochemā€¢3mo ago
To expand on what Epic said here: ChatGPT can be an occasionally useful tool to get a quick answer to a problem, but you absolutely positively have to remember that ChatGPT isn't intelligent. It doesn't understand anything. It's hopped up predictive text that's just really, really good at stringing together random words so that it looks like it knows what it's talking about. I've been using it for a bunch of programming and non-programming stuff, but it very frequently is just play wrong, and how you ask it questions can very much influence what it answers. If you mention chrome in your question for example, you'll get an answer that's tailored to chrome. It's a tool, but it's a very, very unreliable tool And if you're astonished that npm and chrome have nothing to do with each other, you definitely don't have the background needed to judge whether ChatGPT is hallucinating or telling the truth, so I'd recommend using it as little as possible while you're trying to learn something until you can tell what it is and isn't good at
Islandstone
IslandstoneOPā€¢3mo ago
I see. Usually I don't use it at all, but usually I do less technical things.
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
it gave you an almost correct answer, except google chrome doesn't move cache files and has nothing to do with npm what it said is the equivalent of "turnips meaty flavour is a great replacement for flour in a cake"
clevermissfox
clevermissfoxā€¢3mo ago
This example of a hallucinations is amazing
Islandstone
IslandstoneOPā€¢3mo ago
Tried to delete project and try again from scratch. Still stuck.....
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
same issue? šŸ¤£ it came to my mind randomly
Islandstone
IslandstoneOPā€¢3mo ago
Same issue.
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
šŸ¤” are you running the commands in wsl?
Islandstone
IslandstoneOPā€¢3mo ago
Windows Subsystem for Linux? No.
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢3mo ago
then i really am out of ideas
Islandstone
IslandstoneOPā€¢2mo ago
I'M SO STUPID šŸ˜¢ šŸ¤£ It works now. Turns out I forgot to name my Eleventy config file properly. I named it eleventy.js, but the correct naming is .eleventy.js šŸ¤¦šŸ»
į¼”ĻĻ‰Ļ‚
į¼”ĻĻ‰Ļ‚ā€¢2mo ago
šŸ¤” that's not a stupid mistake you were misled by a terribly unrelated error if you can, maybe file a bug with eleventy and explain your situation

Did you find this page helpful?