0

正在尝试使用此生成器生成具有 gulp 任务的 Angular 应用程序,在生成器完成并且 bower 和 NP 也完成安装它们的依赖项之后,我收到以下错误消息:

browser-sync@0.9.1 node_modules/browser-sync
├── path@0.4.9
├── commander@2.1.0
├── opn@0.1.2
├── dev-ip@0.1.7
├── browser-sync-client@0.1.9
├── ua-parser-js@0.6.2
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── http-proxy@1.0.3 (eventemitter3@0.1.2)
├── lodash@2.2.1
├── resp-modifier@0.0.4
├── cl-strings@0.0.5 (chalk@0.4.0, lodash@2.4.1)
├── gaze@0.5.1 (globule@0.1.0)
├── browser-sync-control-panel@0.0.5 (through@2.3.4)
├── portscanner-plus@0.1.0 (q@1.0.1, portscanner@0.2.3)
├── socket.io@0.8.7 (policyfile@0.0.4, redis@0.6.7, socket.io-client@0.8.7)
├── connect@2.13.1 (uid2@0.0.3, methods@0.1.0, cookie-signature@1.0.1, pause@0.0.1, debug@0.8.1, fresh@0.2.0, qs@0.6.6, bytes@0.2.1, buffer-crc32@0.2.1, raw-body@1.1.3, batch@0.5.0, cookie@0.1.0, compressible@1.0.0, negotiator@0.3.0, send@0.1.4, multiparty@2.2.0)
└── url@0.7.9 (querystring@0.1.0, punycode@1.0.0)
execvp(): No such file or directory

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)

非常感谢任何帮助

4

1 回答 1

0

正如 OP @Oleg Tikhonov 在评论中指出的那样:

删除 npm_components 目录并重新安装所有内容

rm -rf npm_componenets
于 2015-03-19T14:29:07.670 回答