ionic2升级到3报错

mysticwe 发布于 2017/06/23 14:09
阅读 195
收藏 0

ionic2升级到3,终端输入sudo npm update -g cordova ionic

出现如下警告和错误

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/ionic/node_modules/@ionic/app-generators

 

/usr/local/lib

└── ionic@3.4.0 

 

npm ERR! Darwin 16.0.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "update" "-g" "cordova" "ionic"

npm ERR! node v7.10.0

npm ERR! npm  v4.2.0

npm ERR! path /usr/local/lib/node_modules/ionic/node_modules/@ionic/app-generators

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall access

 

npm ERR! enoent ENOENT: no such file or directory, access '/usr/local/lib/node_modules/ionic/node_modules/@ionic/app-generators'

npm ERR! enoent ENOENT: no such file or directory, access '/usr/local/lib/node_modules/ionic/node_modules/@ionic/app-generators'

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!     /Users/hdkj/.npm/_logs/2017-06-23T02_57_35_241Z-debug.log

返回顶部
顶部