最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

安装Angular的问题

网站源码admin23浏览0评论

安装Angular的问题

安装Angular的问题

我在全局安装Angular时遇到问题。我在下面列出了错误。

C:\Users\DevSa\ng -> C:\Users\DevSa\node_modules\@angular\cli\bin\ng

> @angular/[email protected] postinstall C:\Users\DevSa\node_modules\@angular\cli
> node ./bin/postinstall/script.js

'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @angular/[email protected] postinstall: `node ./bin/postinstall/script.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @angular/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\DevSa\AppData\Roaming\npm-cache\_logs\2019-11-26T21_34_00_712Z-debug.log
回答如下:在环境变量PATH列表的顶部添加C:\Program Files\nodejs\,然后在其下方添加C:\Users\{your username}\AppData\Roaming\npm

希望可以解决您的问题。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论