2017-02-22 202 views
1

我已經安裝了科爾多瓦和工作,現在當我跑npm install -g ionic我有以下錯誤錯誤安裝的Ubuntu 16.04離子

npm ERR! Linux 4.4.0-64-generic 
npm ERR! argv "/home/daniel/.nvm/versions/node/v6.2.2/bin/node" "/home/daniel/.nvm/versions/node/v6.2.2/bin/npm" "install" "-g" "ionic" 
npm ERR! node v6.2.2 
npm ERR! npm v3.9.5 
npm ERR! path /home/daniel/.nvm/versions/node/v6.2.2/lib/node_modules/.staging/ansi-e973c662 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall rename 

npm ERR! enoent ENOENT: no such file or directory, rename '/home/daniel/.nvm/versions/node/v6.2.2/lib/node_modules/.staging/ansi-e973c662' -> '/home/daniel/.nvm/versions/node/v6.2.2/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi' 
npm ERR! enoent ENOENT: no such file or directory, rename '/home/daniel/.nvm/versions/node/v6.2.2/lib/node_modules/.staging/ansi-e973c662' -> '/home/daniel/.nvm/versions/node/v6.2.2/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/daniel/npm-debug.log 
npm ERR! code 1 

我如何克服呢?

感謝

回答