首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我在安装角钢2的npm时遇到了麻烦

我在安装角钢2的npm时遇到了麻烦
EN

Stack Overflow用户
提问于 2016-07-05 16:58:47
回答 2查看 661关注 0票数 1

这是我在cmd提示符中得到的错误:

代码语言:javascript
复制
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
 > angular2-quickstart@1.0.0 postinstall C:\Users\hp\Desktop\angular2-seed
 > typings install

'typings' is not recognized as an internal or external command,
operable program or batch file.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
npm WARN angular2-quickstart@1.0.0 No description
npm WARN angular2-quickstart@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" 
"C:\\Users\\hp\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!

npm ERR! Failed at the angular2-quickstart@1.0.0 postinstall script 'typings install'.

npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\hp\Desktop\angular2-seed\npm-debug.log
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-07-05 18:04:17

当你看到

“类型”不能被识别为内部或外部命令、可操作的程序>或批处理文件。

尝试先安装类型,npm install typings --global

票数 1
EN

Stack Overflow用户

发布于 2016-07-05 19:14:29

您需要全局安装类型:- npm i typings -g

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38208838

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档