1
npm install @types/jquery
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@types/jquery"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! Invalid name: "@types/jquery"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! T:\...\npm-debug.log
大多數人對堆棧溢出和GitHub的建議升級節點如果出現諸如此類的錯誤,但你可以在輸出中看到:節點已經是最新版本(節點4和節點6.9也沒有工作)。NPM安裝@類型/ jQuery的導致無效的名字:「@類型/ jQuery的」
因此,我想這與Windows 10的交互和本機上的某些設置有關(因爲其他Windows 10機器不受影響)。
在機器上安裝任意非範圍包可以沒有任何問題,而npm install @types/jquery
不會。
可能與那個流浪的'T:'驅動器有關嗎? – brandonscript
直到週末結束,我無法訪問機器。我會測試這是否是原因。你爲什麼認爲'T:'可能是問題? – ideaboxer