PS D:\project\welcome-apps\apps\quickstart-react\ npx@mondaydotcomorg/monday-cli@latest scaffold run./ quickstart-react item-view-10155179
npm error code ENOENT
npm syscall lstat
npm error path C:\Users\aaron\AppData\Roaming\npm
5. npm error errno-4058
npm error enoent ENDENT: no such file or directory, lstat’C:\Users\aaron\AppData\Roaming\npm’
npm error enoent This is related to npm not being able to find a file.
npm NPM enoent
The above is an error when I run the item view quickstart program. I want to know that I have installed the npm dependency in the file. Why is this prompt
Here’s the full log
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@10.8.2
2 info using node@v20.17.0
3 silly config load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config load:file:D:\project\welcome-apps\.npmrc
5 silly config load:file:C:\Users\aaron\.npmrc
6 silly config load:file:C:\Users\aaron\AppData\Roaming\npm\etc\npmrc
7 verbose title npm exec @mondaydotcomorg/monday-cli
8 verbose argv "exec" "--" "@mondaydotcomorg/monday-cli"
9 verbose logfile logs-max:10 dir:C:\Users\aaron\AppData\Local\npm-cache\_logs\2024-08-30T08_06_17_458Z-
10 verbose logfile C:\Users\aaron\AppData\Local\npm-cache\_logs\2024-08-30T08_06_17_458Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
14 http fetch GET https://registry.npmjs.org/@mondaydotcomorg%2fmonday-cli attempt 1 failed with ECONNRESET
15 http fetch GET 200 https://registry.npmjs.org/@mondaydotcomorg%2fmonday-cli 24818ms (cache revalidated)
16 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
17 verbose stack Error: ENOENT: no such file or directory, lstat 'C:\Users\aaron\AppData\Roaming\npm'
17 verbose stack at async lstat (node:internal/fs/promises:1021:18)
17 verbose stack at async #loadActual (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\load-actual.js:112:20)
17 verbose stack at async exec (C:\Program Files\nodejs\node_modules\npm\node_modules\libnpmexec\lib\index.js:207:26)
17 verbose stack at async Npm.exec (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:207:9)
17 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli\entry.js:74:5)
18 error code ENOENT
19 error syscall lstat
20 error path C:\Users\aaron\AppData\Roaming\npm
21 error errno -4058
22 error enoent ENOENT: no such file or directory, lstat 'C:\Users\aaron\AppData\Roaming\npm'
23 error enoent This is related to npm not being able to find a file.
23 error enoent
24 verbose cwd D:\project\welcome-apps
25 verbose os Windows_NT 10.0.22631
26 verbose node v20.17.0
27 verbose npm v10.8.2
28 verbose exit -4058
29 verbose code -4058
30 error A complete log of this run can be found in: C:\Users\aaron\AppData\Local\npm-cache\_logs\2024-08-30T08_06_17_458Z-debug-0.log
dipro
(Dipro Bhowmik)
August 30, 2024, 1:16pm
3
Are you on a corporate network? Are you able to download npm packages on this network?
From Line 14: npm was unable to fetch the package from the registry.
It could be that your VPN or corporate network is blocking access. Or it could be a temporary network issue too.
aaronchen
(aaron)
September 2, 2024, 1:24am
4
I am using a VPN in Hong Kong, do I need to switch to one in the United States
aaronchen
(aaron)
September 2, 2024, 10:14am
5
A good message came through nogrk, but it didn’t show my code.I’m not sure why。
Someone can help me?
dipro
(Dipro Bhowmik)
September 3, 2024, 5:18pm
6
Perhaps the VPN is blocking access to the npm registry… Try another VPN connection to see if it works.
What message did you get from ngrok? Without knowing the message it is hard to help you.
aaronchen
(aaron)
September 4, 2024, 9:19am
7
I already took care of it,Thank you for your help
aaronchen
(aaron)
September 4, 2024, 9:21am
8
Thanks for your help, I solved the problem. If anyone else has the same problem as me, please use this agent
npm config set registry http://registry.npmjs.org/
1 Like
Thank you @aaronchen for sharing the solution here!!