localhost:~ jingmz$ ng -version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ | '_ / _ | | | | |/ _
| '__| | | | | | |
/ | | | | (_| | |_| | | (_| | | | |___| | | |
/_/ __| |_|__, |__,_|_|__,_|_| ____|_____|___|
|___/
Angular CLI: 6.0.8
Node: 10.5.0
OS: darwin x64
Angular: undefined
...
Package Version
@angular-devkit/architect 0.6.8 (cli-only)
@angular-devkit/core 0.6.8 (cli-only)
@angular-devkit/schematics 0.6.8 (cli-only)
@angular/cli <error>
@ngtools/webpack <error>
@schematics/angular 0.6.8 (cli-only)
@schematics/update 0.6.8 (cli-only)
rxjs 6.2.1 (cli-only)
typescript 2.7.2 (cli-only)
localhost:~ jingmz$ node -v
v10.5.0
node 升级v10.5.0 ,angular升级Angular CLI: 6.0.8 新建 angular工程 ng new ss 报错 ,This command can not be run inside of a CLI project.
更新npm被墙了 , 所以要用淘宝的源
cnpm install -g angular-cli@latest
万恶的防火墙