摘要: Yarn 2 is workspace aware. When you need to upgrade a package in one workspace, yarn will ask you if you want to resolve the version of the package to 阅读全文
posted @ 2020-01-27 22:14 Zhentiw 阅读(245) 评论(0) 推荐(0)
摘要: yarn dlx can be used to run packages without installing them. This is useful for packages like create-react-app and gatsby that scaffold out apps for 阅读全文
posted @ 2020-01-27 22:13 Zhentiw 阅读(249) 评论(0) 推荐(0)
摘要: This lesson goes over how to install yarn 2 through npm. To install yarn 2 globally, we use npm install -g yarn@berry Init a project: yarn init -y To 阅读全文
posted @ 2020-01-27 22:03 Zhentiw 阅读(586) 评论(0) 推荐(0)
摘要: 1 . Create a directory for global packages mkdir "${HOME}/.npm-packages" 2. Tell npm where to store globally installed packages npm config set prefix 阅读全文
posted @ 2020-01-27 21:59 Zhentiw 阅读(177) 评论(0) 推荐(0)