2016-05-18 29 views
0

我想在我的Ubuntu 14.04 Linux系統上安裝離子框架。我已經安裝了nodejs,npm,cordova。我用命令在我的終端「NPM安裝-g離子」,每次我收到以下錯誤不能安裝離子框架 - 依賴錯誤

npm http GET https://registry.npmjs.org/ionic 
npm http 304 https://registry.npmjs.org/ionic 
npm WARN unmet dependency /home/dineshadhithya/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 /home/dineshadhithya/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] node_modules/ionic 
+0

您是否嘗試過使用'sudo npm install -g ionic'?另外,你確定沒有安裝'Ionic',因爲這些只是警告 – Greg

+0

是的,那也不起作用 –

+0

commanf'sudo npm install -g ionic'之後,我檢查Ionic是否安裝正確,我用'離子--version'命令,它沒有返回任何東西 –

回答

0

這似乎已經解決了這個問題對於很多:Why does npm install say I have unmet dependencies?

  • 刪除node_modules使用rm -rf node_modules/
  • 運行npm cache clean
+0

離子得到安裝需要很長時間嗎?因爲終端似乎在這個過程中受到了打擊。 –

+0

通常它不應該。你是否在代理後面安裝? – Greg

+0

它沒有工作!相同的依賴性錯誤 –