我正在尝试使用npm安装@ ionic / cloud软件包 ,我的Ionic ClI版本是:2.0.0
显示以下npm错误:
user@ub-dev01:/opt/lampp/htdocs/ess_app$ npm install @ionic/cloud --save
npm WARN package.json ess_app@1.1.1 No repository field.
npm WARN package.json ess_app@1.1.1 No README data
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'ionic/cloud' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'ess_app'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.13.0-45-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "@ionic/cloud" "--save"
npm ERR! cwd /opt/lampp/htdocs/ess_app
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/lampp/htdocs/ess_app/npm-debug.log
npm ERR! not ok code 0
我尝试了sudo,也没有工作
答案 0 :(得分:1)
你在寻找@ ionic / cloud-angular吗? sudo
(可能需要{{1}})
答案 1 :(得分:1)
通过运行
更新npm本身解决了问题sudo npm install -g npm