Skip to content

Commit

Permalink
feat: use npmmirror.com domain instead of nlark.com
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 27, 2021
1 parent 50672a0 commit b3cbdc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cnpm: npm client for [cnpmjs.org](https://cnpmjs.org)
$ npm install cnpm -g
```

If you're in China, maybe you should install it from our [China mirror](https://registry.nlark.com):
If you're in China, maybe you should install it from our [China mirror](https://registry.npmmirror.com):

```bash
$ npm install cnpm -g --registry=https://registry.nlark.com
$ npm install cnpm -g --registry=https://registry.npmmirror.com
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ if (fs.existsSync(userconfig)) {
}

module.exports = {
cnpmHost: 'https://npm.taobao.org',
cnpmRegistry: 'https://registry.nlark.com',
disturl: 'https://npm.taobao.org/mirrors/node', // download dist tarball for node-gyp
iojsDisturl: 'https://npm.taobao.org/mirrors/iojs',
cnpmHost: 'https://npmmirror.com',
cnpmRegistry: 'https://registry.npmmirror.com',
disturl: 'https://npmmirror.com/mirrors/node', // download dist tarball for node-gyp
iojsDisturl: 'https://npmmirror.com/mirrors/iojs',
cache: path.join(root, '.cnpm'), // cache folder name
userconfig,
proxy,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"ini": "^1.3.4",
"npm": "^6.13.4",
"npm-request": "^1.0.0",
"npminstall": "^5.0.0",
"npminstall": "^5.1.0",
"open": "^8.2.1",
"urllib": "^2.17.0"
},
Expand Down
4 changes: 2 additions & 2 deletions test/cnpm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('test/cnpm.test.js', () => {
];
let stdout = '';
const child = run(args, function(code) {
assert(stdout.match(/npm command use --registry=https?:\/\/registry.nlark.com/));
assert(stdout.match(/npm command use --registry=https?:\/\/registry.npmmirror.com/));
assert(code === 0);
done();
});
Expand All @@ -111,7 +111,7 @@ describe('test/cnpm.test.js', () => {
const child = run(args, {
HOME: path.join(fixtures, 'home'),
}, function(code) {
assert(stdout.match(/https?:\/\/registry.nlark.com/));
assert(stdout.match(/https?:\/\/registry.npmmirror.com/));
assert(code === 0);
done();
});
Expand Down

0 comments on commit b3cbdc9

Please sign in to comment.