2017-08-12 328 views
0

昨天晚上我試圖更新我的節點和npm,它似乎已經成功,但是自那時以來,我一直在嘗試運行任何npm命令時都遇到同樣的錯誤。npm更新檢查失敗

我已經嘗試卸載並重新安裝npm,但無法通過下面的錯誤消息。

節點版本:V8.3.0

錯誤消息我得到:

┌───────────────────────────────────────────────────────────────────┐ 
│      npm update check failed      │ 
│    Try running with sudo or get access    │ 
│    to the local update config store via    │ 
│ sudo chown -R $USER:$(id -gn $USER) /Users/veritystothard/.config │ 
└───────────────────────────────────────────────────────────────────┘ 
module.js:491 
    throw err; 
    ^

Error: Cannot find module 'proto-list' 
    at Function.Module._resolveFilename (module.js:489:15) 
    at Function.Module._load (module.js:439:25) 
    at Module.require (module.js:517:17) 
    at require (internal/module.js:11:18) 
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:1:79) 
    at Module._compile (module.js:573:30) 
    at Object.Module._extensions..js (module.js:584:10) 
    at Module.load (module.js:507:32) 
    at tryModuleLoad (module.js:470:12) 
    at Function.Module._load (module.js:462:3) 

我不知道在這裏包括哪些其他細節,如果任何人有這個問題之前,我會很感激你的幫助。謝謝!

+0

可能重複[Node.js 0.8.15 npm錯誤:找不到模塊'proto-list'](https://stackoverflow.com/questions/13584852/node-js-0-8-15-npm-錯誤無法找到的模塊,原名單) – mscheker

回答

0

以下是github

Fix for windows, I got this message :

npm update check failed Try running with sudo or get access to the local update config store via sudo chown -R $USER:$(id -gn $USER) C:\Users.config

so I went on to C:\Users.config and deleted the "configstore" folder. once I done this, next time a ran npm start, the folder was re-generated, and error stopped

0

更新,所以我剛剛刪除目錄的.config和本幫助的答案我有類似的錯誤節點之後。