[英]Ionic installation in ubuntu 14.04 failed
嘗試安裝Ionic時出現此問題。
mypc@mypc-HP-ProBook-470-G2:~$ 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 debug@'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 combined-stream@'~0.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
ionic@1.7.14 /usr/local/lib/node_modules/ionic
有人可以幫我解決嗎?
謝謝。
為了回答您的問題,它是npm
和nodejs
版本,這是錯誤的。 ( 至少在我的情況下 )
我認為這與后來添加的作用域包功能有關。
我不確定是否更新到更高版本的node,是否專門使用ubuntu,但是出於這個目的,我使用的是ubuntu14.x。
刪除您當前可能具有的所有nodejs安裝:
sudo apt-get remove --purge nodejs
那么您想通過NVM軟件包安裝節點
您可以通過以下方式搜索所需的版本:
nvm ls-remote
對於離子安裝,我更新為:v0.12.10
nvm install 0.12.10
安裝完成后(還將為您安裝/更新npm)
您應該會看到最新版本:
node -v
在這種情況下,應顯示: v.0.12.10
。
然后,您可以按照說明繼續安裝ionic框架。
npm install -g ionic
注意: NVM還允許您同時安裝不同節點版本。 對於某些舊版應用程序//服務非常方便。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.