节点cmd在fsevents点执行“ npm install”时挂起

Kri*_*ris 5 node.js npm angular

我正在尝试通过npm命令“ npm install”安装anugalr2。但是当到达某个程度时,就出现了。命令提示符卡住。此后什么也没发生。PFb cmd图像 在此处输入图片说明

任何建议/建议都会有所帮助

更新:

当我尝试npm i --no-optional。它被卡在“” core-js“包中

D:\Angular2\quickstart-master>npm i --no-optional
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or highe
to avoid a RegExp DoS issue
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
[            ......] - extract:core-js: sill pacote core-js@https://registry.n
Run Code Online (Sandbox Code Playgroud)

小智 14

在我清理 npm 缓存后,它对我有用

npm cache clean --force


Eth*_*han 5

正如@RidgeA 在他们的评论中所说......

使用npm i --no-optional。这不会安装可选依赖项,其中之一是fsevents. 它被卡住的原因是因为它fsevents是为 Mac 编写的(请参阅https://www.npmjs.com/package/fsevents)。