npm笔记
#执行npm start时是运行的哪个js文件? 打开package.json看看scripts属性中start配置的是什么运行脚本,这里配置的就是你执行npm start时跑的脚本 #设置npm的源为taobao [1] npm config set registry https://registry.npm.taobao.org npm config get registry #验证是否配置成功 #设置yarn的源为taobao yarn config get registry yarn config set registry https://registry.npm.taobao.org #npm模块更新 [1] npm update -g create-react-app #npm查看已安装模块的版本 npm ls react #npm移除模块 npm remove babel-plugin-import npm remove babel-plugin-import -g //移除全局模块 #获取或设置全局模块存放目录 [1] npm config get prefix npm config set prefix "目录路径"
posted on 2017-09-29 15:09 dream_bccb 阅读(126) 评论(0) 收藏 举报
浙公网安备 33010602011771号