网上找到的:
ng set --global packageManager=cnpm
不行。
命令行提示:
ng config <jsonPath> value options
这个 jsonPath 应该是什么?
我在这里 链接
找到说明:
ng config
Overview
ng config [key] [value] Get/set configuration values. [key] should be in JSON path format. Example: a[3].foo.bar[2]. If only the [key] is provided it will get the value. If both the [key] and [value] are provided it will set the value.
Options
global
--global (alias: -g)
Get/set the value in the global configuration (in your home directory).
我的理解是:
ng config packageManager cnpm -g
但仍然提示:Invalid Path
ng config cli.packageManager cnpm -g
参考
https://github.com/angular/an...