我遵循这个教程,在这里输入链接描述,但我被困在12:41。我在视频描述中下载了seed项目链接,并在Windows 7上发布了作为管理员的somman npm install。但是我得到了以下错误:
C:\development\angular2\angular2-seed>npm install
> angular2-quickstart@1.0.0 postinstall C:\development\angular2\angular2-seed
> typings install
(I translated following lines to English)
typings is not name of an command, executable or batch.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN angular2-quickstart@1.0.0 No description
npm WARN angular2-quickstart@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\A
ppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
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 ins
tall'.
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 p
ackage,
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:\development\angular2\angular2-seed\npm-debug.log请给我建议。谢谢。
发布于 2016-10-18 09:14:00
权限颁发。这可能与窗口中的路径名有关。
在Git Bash或中检查相同的内容。
您可以设置节点路径,如:set NODE_PATH=source
删除node_modules并再次运行npm install。
发布于 2021-09-27 08:17:49
如果有人在我的情况下面临这个错误,并且尝试了这里提到的所有解决方案,以及另一个类似的问题,比如:
我的工作是做"npm安装-强制“。
注意:这也是在错误本身中推荐的,我之前没有注意到。
甚至“纱安装”也成功了。
https://stackoverflow.com/questions/40103850
复制相似问题