npm零碎记录

 

 

设置淘宝镜像 

npm config set registry https://registry.npm.taobao.org

 

安装nodejs所需的环境(Visual Studio XX、python什么鬼的),执行这个命令会自动检测并帮你安装好,

npm install --g --production windows-build-tools

 

执行编译时指定python版本,

npm install --python=python2.7

 

posted @ 2022-11-23 15:41  幻河  阅读(19)  评论(0编辑  收藏  举报