2017-02-22 138 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 

我如何克服呢?

感谢

回答