很抱歉问一个非常基本的问题,因为我不熟悉 NPM 和 Bower。 刚刚看到了安装基于 AngularJS 的库的提示。
看看就知道了
npm install --save angularjs-gauge
bower install --save angularjs-gauge
我只想知道 NPM 或 bower 将在哪里保存库?
如何指定路径以使用 NPM 和 Bower 将库保存在特定文件夹中。 谢谢
在项目根目录中创建一个 Bower 配置文件 .bowerrc 并指定目录路径。
例如:-
{ "目录" : "公共/组件"}
https://bower.io/docs/config/
再次运行 bower 安装。