简体   繁体   English

如何更改与 Angular CLI 一起使用的 package 管理器(例如,使用 pnpm 而不是 npm 用于“ng add”)?

[英]How to change package manager used with Angular CLI (e.g. using pnpm instead of npm for `ng add`)?

Did not find much, yet for that topic, therefore using SO-question.没有找到太多关于该主题的内容,因此使用了 SO-question。

For commands like eg ng add @angular/material I would like to use the package manager of choice pnpm .对于像ng add @angular/material这样的命令,我想使用选择pnpm的 package 管理器。

As simple as it sounds;)听起来很简单;)

ng config -g cli.packageManager pnpm

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Angular CLI实现ng2-ui(NPM包)? - How to implement ng2-ui (NPM package) using Angular CLI? 在angular cli中,如何将元数据添加到路径,例如标题和描述标签 - In angular cli how can you add meta data to routes e.g. title and description tags 如何在Angular 2中导入非核心npm模块,例如(使用加密库)? - How to import non-core npm modules in Angular 2 e.g. (to use an encryption library)? 我使用npm uninstall -g angular-cli卸载了angular-cli。 但是,当我检查ng --version时,它仍然安装 - I uninstalled angular-cli using npm uninstall -g angular-cli. However, it is still installed when I check ng --version Angular:如何添加全局 CSS(例如添加到正文),但仅针对一个特定页面? - Angular: How to add global CSS (e.g. to the body), but only for one specific page? npm install错误:使用此命令“ npm install -g @ angular / cli” - npm install error : using this command “npm install -g @angular/cli” 通过 (npm install -g @angular/cli) 安装的 Angular Cli — 获取 ng 不被识别为外部和内部命令 - Installed Angular Cli by (npm install -g @angular/cli) — getting ng is not recognised as an external and internal command Angular CLI构建dist而不更新资产的修改时间(例如图像) - Angular CLI build dist without updating modified time of assets (e.g. images) 我最近使用npm install -g @ angular / cli命令安装了angular。当我检查角度是否已安装或不使用ng-v cmd时,什么也没有显示 - I recently installed angular using npm install -g @angular/cli command.When i check the angular is installed or not using ng-v cmd nothing is shown 使用npm i -g @ angular / cli时出错 - Error while using npm i -g @angular/cli
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM