gpt4 book ai didi

node.js - 无法为 angular-phonecat 教程 : Cannot find module 'update-notifier' 进行 npm 安装

转载 作者:太空宇宙 更新时间:2023-11-03 22:37:40 25 4
gpt4 key购买 nike

我在 angular-phonecat 目录中运行 npm install 时遇到问题。我假设这可能是我的路径问题,但不确定。任何见解将不胜感激。我不断收到错误:找不到模块“更新通知程序”。如果我单独安装这个,我只会得到另一个丢失的模块。

$ 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 installmodule.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 8npm 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 installnpm ERR! You can get their info via:npm ERR!     npm owner ls angular-phonecatnpm ERR! There is likely additional logging output above.npm ERR! System Darwin 13.1.0npm ERR! command "node" "/Users/Ashton/.node/bin/npm" "install"npm ERR! cwd /Users/Ashton/Dropbox/Learning Projects/angular-phonecatnpm ERR! node -v v0.10.26npm ERR! npm -v 1.4.7npm ERR! code ELIFECYCLEnpm ERR! npm ERR! Additional logging details can be found in:npm ERR!     /Users/Ashton/Dropbox/Learning Projects/angular-phonecat/npm-debug.lognpm ERR! not ok code 0

最佳答案

当我尝试在 Windows 10 上下载 Angular-Seed 项目时,我遇到了类似的问题。我安装了 GIT 命令行。然后我没有下载 ZIP,而是使用 GIT 命令行来下载项目。 git 克隆 https://YOURPORJECT.For我在 git config --global url 中输入的网络问题。"https://".insteadOf git://.

关于node.js - 无法为 angular-phonecat 教程 : Cannot find module 'update-notifier' 进行 npm 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23259317/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com