无法为angular-phonecat教程进行npm安装:找不到模块'update-notifier' [英] Cannot npm install for angular-phonecat tutorial : Cannot find module 'update-notifier'

查看:148
本文介绍了无法为angular-phonecat教程进行npm安装:找不到模块'update-notifier'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在angular-phonecat目录中运行npm install时遇到问题.我假设这可能是我的路径问题,但不确定.任何见解将不胜感激.我不断收到错误消息:找不到模块"update-notifier".如果我单独安装它,我将得到另一个缺少的模块.

I am having issues running npm install in the angular-phonecat directory. I am assuming this may be an issue with my paths but not sure. Any insight would be much appreciated. I keep getting Error: Cannot find module 'update-notifier'. If i install this individually i will just get another missing module.

$ which node
/usr/local/bin/node

$ which npm
/Users/Ashton/.node/bin/npm

export PATH="/usr/local/bin/node:$PATH"
export PATH="$HOME/.node/bin:$PATH"

$ npm install

> angular-phonecat@0.0.0 postinstall /Users/Ashton/Dropbox/Learning Projects/angular-phonecat
> bower install


module.js:340
    throw err;
          ^
Error: Cannot find module 'update-notifier'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object. (/Users/Ashton/Dropbox/Learning Projects/angular-phonecat/node_modules/.bin/bower:8:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

npm ERR! angular-phonecat@0.0.0 postinstall: `bower install`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the angular-phonecat@0.0.0 postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/Users/Ashton/.node/bin/npm" "install"
npm ERR! cwd /Users/Ashton/Dropbox/Learning Projects/angular-phonecat
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.7
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/Ashton/Dropbox/Learning Projects/angular-phonecat/npm-debug.log
npm ERR! not ok code 0

推荐答案

当我尝试在Windows 10上下载有角度的种子项目时,我遇到了类似的问题.我安装了GIT命令行.然后,我使用GIT命令行下载项目,而不是下载ZIP. git clone https://YOURPORJECT.For 我在git config --global url中键入的网络问题."https://".insteadOf git://.

I was having a similar issue when I was trying to download angular-seed project on windows 10. I installed GIT command line. Then Instead of downloading the ZIP, I used GIT command line to download the project. git clone https://YOURPORJECT.For the network issue I typed in git config --global url."https://".insteadOf git://.

这篇关于无法为angular-phonecat教程进行npm安装:找不到模块'update-notifier'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆