webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo ERROR
Answered
MeKa posted this in #help-forum
Original message was deleted.
70 Replies
@Jboncz "npm cache clean--force" doesn't work either.
So @MeKa try moving the project to somewhere thats not the 'users' folder. Windows has really weird UAC settings on some of the default folders
I don't think it could be related to this. Many of my projects are "on the desktop" and there is no problem. "Next.js 14.2.2" also causes such a problem.
Desktop is fine. Put it on the desktop
users folder is special in windows
I did it on 14.2.2 with zero issues.
This is a windows issue im 99% certain
The project is already on the desktop
Ohhhhhhhhhhh
Wait one sec
Sorry sorry I misunderstood.
Can you navigate to "C:\Users\meka\node_modules"
meka@MeKaPC MINGW64 ~/Desktop/mekasis
$ npm cache clean --force
npm WARN using --force Recommended protections disabled.
meka@MeKaPC MINGW64 ~/Desktop/mekasis
$ npm cache verify
Cache verified and compressed (~\AppData\Local\npm-cache\_cacache)
Content verified: 822 (499340508 bytes)
Content garbage-collected: 2 (756106 bytes)
Index entries: 822
Finished in 14.318s
There is no such folder.
one minute
There was.
Hmmm?
There was a folder?
There is a folder
Whats in said folder?
"C:\Users\meka\node_modules"
You coppied my qoutes didnt you π
Delete it.
Answer
β Starting...
β Ready in 3.8s
β Compiling / ...
(node:16704) [DEP0040] DeprecationWarning: The
(Use
β Compiled / in 8s (502 modules)
β Compiled in 1308ms (240 modules)
GET / 200 in 9381ms
β Ready in 3.8s
β Compiling / ...
(node:16704) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)β Compiled / in 8s (502 modules)
β Compiled in 1308ms (240 modules)
GET / 200 in 9381ms
I mean progress eh?
(node:16704) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
So how can I fix this error?
(Use node --trace-deprecation ... to show where the warning was created)
So how can I fix this error?
Great question. Show me your package.json
It works. There's no problem.
{
"name": "mekasis",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"lucide-react": "^0.372.0",
"next": "14.2.2",
"next-auth": "^5.0.0-beta.16",
"next-themes": "^0.3.0",
"nodemailer": "^6.9.13",
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.1.0",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.22.5"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.2",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
So its more than just a vanilla install π
You need to find out what dependency has a dependency on punycode
Im sure theres an easy way to do it, but I would check the package.json of each module inside of your node_modules folder
The
punycode
module is deprecated. Please use a userland alternative instead.Yeah, but its not YOUR dependency, which means another module is instead using that as a dep
yes
You cant really fix that per say
Well I mean you can, but I wouldnt recommend it lol find out which package is using it from that list
It takes a lot of time π
Wellllllll one sec
Get-ChildItem -Path "C:\Users\Jboncz\Downloads\testapp\my-app" -Filter "package.json" | ForEach-Object {
$filePath = $_.FullName
$fileContent = Get-Content $filePath -Raw
if ($fileContent -match "punycode") {
Write-Host "Phrase found in $filePath"
}
}
You can run that in powershell
however, I would never suggest someone run something that they dont know what it does.
BUT that will find what files have the word "punycode" in it
At your descretion you can use that to find what package.json has the dep
Obviously you have to change the path π
but even if you find it you cant really fix it, but you can either find an alternative, or you can check their github and see if others are posting about it and see if the developer is aware.
Ok thank you very much bro. Then let me deal with it later.
Np np.
good luck!
I have a problem with a different project of mine. I uploaded it to the server, but the "/panel" path does not work. If you know, you can try connecting to my computer. I upload the project to "Plesk" via "Docker".
It works very well on "localhost", but when I upload it to the server, I encounter an error.
Im not going to connect to your computer π
Sorry.
you can open another help forum with the error and I can try to take a look
The virus is transmitted π
I have no idea how to open it.
I mean it isnt even that, I would connect in a isolated vm, just not goiong to do it. Im watching movies. π
Open what? The error?
Idk what plesk is in any capacity. You should only test in a docker container on a local resource before deploying it, it can be troublesome to get the data after. Depends on the service provider.
Im going to step away for some dinner tho.
Ok brother, good night, I wish you a pleasant viewing.
Probably your docker container isnt setup properly, gotta test locally, or find out how you can see the logs with the service provicer
OK bro thanks.
@MeKa please mark the answer to this question. Please also donβt delete original questions unless it contains secret credentials
I completely deleted the "node_modules" folder in the "C:\Users*USER*\node_modules" folder and the problem was solved. Because the folder there did not represent any project.