无法安装离子框架 - 依赖性错误

时间:2016-05-18 08:17:46

标签: node.js ionic-framework npm ubuntu-14.04

我正在尝试在我的Ubuntu 14.04 Linux系统上安装离子框架。我已经安装了nodejs,npm,cordova。我在终端中使用命令'npm install -g ionic',每次出现以下错误

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 debug@'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 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 node_modules/ionic

1 个答案:

答案 0 :(得分:0)

这似乎解决了许多人的问题:Why does npm install say I have unmet dependencies?

  • 使用node_modules
  • 删除rm -rf node_modules/
  • 运行npm cache clean