美文网首页
npm registry

npm registry

作者: MOMOsShare | 来源:发表于2020-07-17 09:19 被阅读0次

1.查看npm镜像源
npm config get registry
默认值 https://registry.npmjs.org/
2.设置npm镜像源
npm config set registry https://registry.npm.taobao.org/
淘宝 https://registry.npm.taobao.org/

1.安装 vue
npm install -g vue
2.安装 vue cli
npm install -g @vue/cli

创建vue项目
vue create project-name
启动
npm run serve
安装node-sass
npm install node-sass --sass-binary-site=http://npm.taobao.org/mirrors/node-sass

相关文章

网友评论

      本文标题:npm registry

      本文链接:https://www.haomeiwen.com/subject/gpmwhktx.html