安装nodejs准备开发的前期设置
文章目录
设置淘宝源
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
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论