共计 433 个字符,预计需要花费 2 分钟才能阅读完成。
设置淘宝源
npm
npm config set registry https://registry.npm.taobao.org
yarn
yarn config set registry https://registry.npm.taobao.org
设置全局下载目录
npm
npm config set prefix "D:\nodejs\npm\global"
npm config set cache "D:\nodejs\npm\cache"
yarn
yarn config set global-folder "D:\nodejs\yarn\global"
yarn config set cache-folder "D:\nodejs\yarn\cache"
yarn config set prefix "D:\nodejs\yarn\bin"
win10 PowerShell yarn 无奈辨认问题
- 确保环境变量 Path 设置无误
- 超管关上 PowerShell 输出命令 确定
Set-ExecutionPolicy RemoteSigned
正文完