簡體   English   中英

每當我嘗試在 Visual Studio 代碼上運行“npm install”時出現錯誤

[英]I get an error whenever i try to run "npm install" on visual studio code

每當我運行 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 成功了,我還必須添加 type":"module",而且我使用 got so 而不是 require() 我使用 import

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM