npm

1. npm 本身的registry 很慢 能夠改用淘寶的webpack

 

臨時用 npm --registry https://registry.npm.taobao.org install 包名

永久設置 npm config set registry https://registry.npm.taobao.org

  

 

 

查看registry 的 配置 :npm config get registryweb

npm info 包名npm

 

1) npm install 包名bash

npm install (npm install <package_name> [--save-prod]) , dependenciesspa

npm install <package_name> --save-dev, devDependenciesblog

2) npm uninstallci

3) npm outdated 包名get

eg:io

npm outdated webpack
Package  Current  Wanted  Latest  Location
webpack   4.16.1  4.21.0  4.21.0  console-afd
相關文章
相關標籤/搜索