yarn global add !== yarn add global
yarn global add !== yarn add global
yarn does not exist the
--global
flag, but exitsyarn global
command
# yarn global add !== yarn add global
# ✅
$ yarn global add @angular/cli
{
"dependencies": {
"@angular/cli": "^10.0.8",
}
}
# yarn global add !== yarn add global
# ❌
$ yarn add global @angular/cli
{
"dependencies": {
"@angular/cli": "^10.0.8",
"global": "^4.4.0"
}
}
refs
https://classic.yarnpkg.com/en/docs/cli/global/
https://classic.yarnpkg.com/en/docs/cli/add
Angular CLI
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/13595644.html
未经授权禁止转载,违者必究!