angular-cli 6.0 怎样设置淘宝镜像?

网上找到的:

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

阅读 1.7k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题