[英]I get an error whenever i try to run "npm install" on visual studio code
whenever I run npm install I get this error I am on node version 18.9.1 and I have tried every single solution please help每当我运行 npm 安装时,我都会收到此错误,我使用的是节点版本 18.9.1,并且我已经尝试了每一个解决方案,请帮助
'''npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\ASUS\OneDrive\Desktop\cw/package.json
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\ASUS\OneDrive\Desktop\cw\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent'''
npm install --force did the trick i also had to add type": "module", and also I was using got so instead of require() I used import npm install --force 成功了,我还必须添加 type":"module",而且我使用 got so 而不是 require() 我使用 import
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.