node.js - npm 安裝錯誤 errno -4068
typecho
typecho 2017-06-17 09:15:51
0
1
1795

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Software\Program Files\JetBrains\WebStorm 2017.1.4\nodeJs\node.exe" "C:\Software\Program Files\JetBrains\WebStorm 2017.1.4\nodeJs\node_modules\npm\bin\npm-cli.js" "install" "yarn" "-g"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! path C:\Software\Program Files\JetBrains\WebStorm 2017.1.4\nodeJs\global\yarn
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall open

npm ERR! eisdir EISDIR: illegal operation on a directory, open 'C:\Software\Program Files\JetBrains\WebStorm 2017.1.4\nodeJs\global\yarn'
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Windows\system32\npm-debug.log

以上是npm安裝yarn時的報錯日誌,嘗試重新安裝nodejs,使用管理權限執行cmd,都不成功。請問怎麼解決?

typecho
typecho

Following the voice in heart.

全部回覆(1)
为情所困

可能npm版本問題 ,重新安裝npm 試試
試試 npm uninstall npm
然後再 npm install -g npm

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!