淘宝NPM镜像、cnmp
生活随笔
收集整理的這篇文章主要介紹了
淘宝NPM镜像、cnmp
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
淘寶NPM鏡像
網(wǎng)址: https://npmmirror.com/
設(shè)置淘寶NPM鏡像
shell> npm config set registry https://registry.npmmirror.com查看當(dāng)前源
shell> npm config get registry https://registry.npmmirror.com/恢復(fù)NPM源
shell> npm config set registry https://registry.npmjs.org/臨時用一下淘寶NPM鏡像
shell> npm install [name] --registry=https://registry.npmmirror.com比如:
shell> npm install -g vue-cli --registry=https://registry.npmmirror.com- npm 使用淘寶NPM鏡像https://registry.npmmirror.com 安裝 vue-cli模塊
使用 cnpm
安裝cnpm
shell> npm install -g cnpm --registry=https://registry.npmmirror.com使用cnpm代替npm
shell> cnpm install [name]總結(jié)
以上是生活随笔為你收集整理的淘宝NPM镜像、cnmp的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电脑开机密码忘记怎么办电脑开机密码忘记怎
- 下一篇: npm 查看当前生效的配置