1
嘗試安裝Ionic時出現此問題。ubuntu 14.04中的離子安裝失敗
[email protected]:~$ sudo npm install -g ionic
npm http GET https://registry.npmjs.org/ionic
npm http 200 https://registry.npmjs.org/ionic
npm http GET https://registry.npmjs.org/ionic/-/ionic-1.7.14.tgz
npm http 200 https://registry.npmjs.org/ionic/-/ionic-1.7.14.tgz
/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
npm WARN unmet dependency /usr/local/lib/node_modules/ionic/node_modules/connect/node_modules/finalhandler requires [email protected]'1.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/local/lib/node_modules/ionic/node_modules/request/node_modules/form-data requires [email protected]'~0.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
[email protected] /usr/local/lib/node_modules/ionic
有人可以幫我解決它嗎?
謝謝。
嘗試安裝時沒有sudo –
當我嘗試安裝沒有sudo時,它給出了一個錯誤:npm ERR!錯誤回滾錯誤:EACCES,取消鏈接'/ usr/local/bin/ionic' – aristos
使用sudo刪除離子,然後再次安裝sudo –