如何在离子中安装ngCookies?

时间:2015-05-05 13:30:31

标签: angularjs cordova ionic-framework ionic

您好我正在尝试在我的离子应用中安装ngCookies。使用npm install angular-cookie命令然后我收到错误消息,如

> Administrators-MacBook-Pro:QShieldpro3may munavvar$ npm install angular-cookie npm WARN package.json qshieldpro@1.0.0 No repository
> field. npm WARN package.json qshieldpro@1.0.0 No README data npm ERR!
> 404 404 Not Found: angular-cookie npm ERR! 404  npm ERR! 404
> 'angular-cookie' 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 'qshieldpro' 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 Darwin 14.3.0 npm ERR! command "node"
> "/usr/local/bin/npm" "install" "angular-cookie" npm ERR! cwd
> /Users/munavvar/QShieldpro3may npm ERR! node -v v0.10.33 npm ERR! npm
> -v 1.4.28 npm ERR! code E404 npm ERR!  npm ERR! Additional logging details can be found in: npm ERR!    
> /Users/munavvar/QShieldpro3may/npm-debug.log npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:1)

你在饼干结束时错过了一个S:

https://github.com/angular/bower-angular-cookies