yarn using npmmirror.com as registry
npm install yarn tyarn -g
same with yarn
, replace yarn
with tyarn
, for example:
tyarn add antd
use npm to publish
yarn using npm.taobao.org as registry
根据天猪的公告,原淘宝npm域名 http://npm.taobao.org 和 http://registry.npm.taobao.org 将在 2022.06.30 号正式下线和停止 DNS 解析。
域名切换规则:
http://npm.taobao.org => http://npmmirror.com
http://registry.npm.taobao.org => http://registry.npmmirror.com
tyarn 可能会受影响,现在访问淘宝 NPM 已经会自动 301 跳转到 npmmirror.com 新域名
com.exe return:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'tyarn' ]
2 info using [email protected]
3 info using [email protected]
4 silly install loadCurrentTree
5 silly install readLocalPackageData
6 verbose stack TypeError: arg.indexOf is not a function
6 verbose stack at npa (C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\node_modules\npm-package-arg\npa.js:21:75)
6 verbose stack at Object.manifest (C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\node_modules\pacote\manifest.js:12:10)
6 verbose stack at fetchPackageMetadata (C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\lib\fetch-package-metadata.js:58:10)
6 verbose stack at limited (C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\node_modules\call-limit\call-limit.js:29:10)
6 verbose stack at fs.stat (C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\lib\install\deps.js:208:20)
6 verbose stack at C:\Users\Administrator\AppData\Roaming\nvm\v8.0.0\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
6 verbose stack at FSReqWrap.oncomplete (fs.js:152:21)
7 verbose cwd E:\AWW-Study\Front\umi-demo
8 verbose Windows_NT 6.1.7601
9 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "tyarn"
10 verbose node v8.12.0
11 verbose npm v6.4.1
12 error arg.indexOf is not a function
13 verbose exit [ 1, true ]
在mac系统nvm环境下安装后找不到命令:
$ nvm use v16.13.1
Now using node v16.13.1 (npm v8.1.2)
$ npm install yarn tyarn -g
added 8 packages in 975ms
$ tyarn -v
-bash: tyarn: command not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.