We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
依赖安装
无
The text was updated successfully, but these errors were encountered:
我还没发现项目根目录有个.npmrc, 这里面的配置会导致一些问题(除了网络的原因), 弄了一上午, 后来才发现, 删掉就好了, 我的node版本15.0.1
Sorry, something went wrong.
我是安装依赖的时候会报错,一直导致依赖安装不成功,看网上说清除缓存,清了缓存也不行,然后发现这个配置里面竟然是r.cnpmjs.org尝试访问下面的sass站点都不成功,换成淘宝的就好了,在这给大家说下,避免踩坑。
tbify 解你忧愁😄
基于环境变量对国内请求速度欠佳的资源地址进行了替换,具体分为两点:
npm
npx
yarn
pnpm
pnpx
nvm
node-sass
Electron
Puppeteer
Cypress
Sharp
以上,本工具对包管理工具本身零侵入,同时,对环境变量的设置也是一次性的,并不会产生任何的副作用,请放心使用。
# npm npm install tbify --global # yarn yarn global add tbify # pnpm pnpm add --global tbify
对于常用的包管理命令,tbify 提供了使用淘宝 NPM 镜像的等价命令,除了发布包到 npm 时必须使用 npm publish 外,都可以使用等价命令进行相关操作:
tbify
npm publish
tnvm
tbify nvm
tnvm install 8.0.0
tnpm
tbify npm
tnpm install react
tnpx
tbify npx
tnpx kill-port 3000
tyn
tbify yarn
tyn add react
tpm
tbify pnpm
tpm add react
tpx
tbify pnpx
tpx kill-port 3000
对于其他命令,在使用时加上 tbify 前缀即可,比如:
tbify printenv npm_config_registry # -> https://r.npm.taobao.org
@fjc0k 赞啊,有机会试一下
luckyadam
honlyHuang
No branches or pull requests
这个特性解决了什么问题?
依赖安装
这个 API 长什么样?
无
The text was updated successfully, but these errors were encountered: