代码改变世界

npm安装知识点

2022-09-03 18:22  ly772186472  阅读(27)  评论(0)    收藏  举报

 

 

npm
npm init
npm init -y 表示安装的其他默认为yes
设置淘宝镜像:
    npm config set registry https://registry.npm.taobao.org
查看配置情况:
npm config list

npm install --save axios
==== npm install axios


mockjs ---前后台联调之前的请求接口--类似后台的postmen
---npm install --save-dev mock.js
简写为: npm i -D nockjs
npm update
npm uninstall

 

 

从镜像上下载