鍍金池/ 問答/HTML5  HTML/ angular-cli 6.0 怎樣設(shè)置淘寶鏡像?

angular-cli 6.0 怎樣設(shè)置淘寶鏡像?

網(wǎng)上找到的:

ng set --global packageManager=cnpm

不行。

命令行提示:

ng config <jsonPath> value options

這個 jsonPath 應(yīng)該是什么?

我在這里 鏈接
找到說明:

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...

2017年7月3日 04:39