我正在使用mac osX Sierra当我没有安装angular-cli时,我尝试强制安装,尝试通过纱线进行安装,但没有改变那些安装说angular-cli安装成功但是当我写ng -v或ng --version或ng --help或ng -help一直给我同样的错误按摩,我无法使用角度cli :(
success Installed angular-cli@1.0.0-beta.19-3 with binaries:
- ng
✨ Done in 24.96s.
MDSAZIDs-iMac:~ MYMAC$ ng -v
module.js:457
throw err;
^
Error: Cannot find module 'rsvp'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/MYMAC/node_modules/angular-cli/node_modules/ember-cli/lib/ext/promise.js:3:15)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)