我已经用npm(5.3.0)安装了node(v 8.5.0)。 之后我做了:npm install -g @ angular / cli但它没有工作:
ng help
-bash: ng: command not found
这是安装日志:
MacBook-Air:~ michael$ npm install -g @angular/cli
/Users/michael/.npm-global/bin/ng -> /Users/michael/.npm-global/lib/node_modules/@angular/cli/bin/ng
+ @angular/cli@1.4.3
updated 1 package in 39.276s