当前位置:网站首页>NPM, cnpm Taobao image
NPM, cnpm Taobao image
2022-07-27 18:59:00 【venture to ask】
Taobao made a npm Mirror image cnpm
cnpm With and npm Same function
install cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.orgCan be used after installation cnpm To install the module
cnpm install –save nzhCheck whether the installation is successful
cnpm -vnpm Taobao mirror
If used npm The installation of , I don't want to download Ali's cnpm Command tools , Direct will node The address of Taobao's warehouse can be replaced by the address of Taobao's
Single use
npm install --registry=https://registry.npm.taobao.orgPermanent use
Developing react-native When , Do not use cnpm!cnpm The installed module path is strange ,packager Can't recognize . therefore , To facilitate development , We'd better use Taobao's image source directly and permanently
Direct command line settings
npm config set registry https://registry.npm.taobao.orgManually change the settings
1. open .npmrc file (C:\Program Files\nodejs\node_modules\npm\npmrc, If not, you can use git Command line build a ( touch .npmrc), use cmd The command will report an error )
2. increase registry =https://registry.npm.taobao.org that will do .Check whether the modification is successful
// After configuration, you can verify the success by
npm config get registry
// or
npm info expressreturn https://registry.npm.taobao.org/
If you want to restore npm Warehouse address , Just configure the address to npm Mirror image is OK
npm config set registry https://registry.npmjs.org/
边栏推荐
- C basic concepts list description suggestions collection
- MySQL 03 advanced query (I)
- 地图找房的实例
- C file and folder input / output stream code
- Multifunctional wireless remote control moxibustion instrument chip dltap703sd
- 连接查询和子查询
- MySQL 04 advanced query (II)
- Mini washing machine touch chip dlt8ma12ts Jericho
- Interceptor interceptor
- The great idea of NS2
猜你喜欢
随机推荐
Mini washing machine touch chip dlt8ma12ts Jericho
Matplotlib (basic usage)
TypeError: conv2d(): argument ‘padding‘ (position 5) must be tuple of ints, not str【报错】
MySQL set validate_ Adding skip grant tables after password=off failed to start the service
内网的公司邮箱服务器怎么发外部邮件
Code interview of Amazon
Bathroom with demister vanity mirror touch chip-dlt8t10s
Use mobaxtermto establish a two-tier springboard connection
JS中的数组与对象
Kinect for Unity3d----KinectManager
SQL server stored procedures multi angle introduction suggestions collection
normal distribution, lognormal distribution,正态随机数的生成
Order timeout cancellation and commodity query by category
Baidu map eagle eye track service
Unity-显示Kinect深度数据
ValueError: Found input variables with inconsistent numbers of samples: [80019456, 26673152]【报错】
MySQL 03 advanced query (I)
Intelligent insomnia therapeutic instrument product dlt8p68sa Jericho
飞机大战英雄出场加子弹实现
log4j. Properties log details









