diff --git a/README.md b/README.md index 922e82fc..5dbfa45a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Make `npm install` fast and handy. ## Node.js and Python required -- Node.js >= 14.x +- Node.js >= 20.x - Python >= 3.x ## Use as Cli @@ -28,7 +28,7 @@ Make `npm install` fast and handy. ### Install ```bash -$ npm install npminstall -g +$ npm i -g npminstall ``` ### Usage @@ -38,7 +38,7 @@ $ npm install npminstall -g It is integrated in [cnpm](https://github.com/cnpm/cnpm). ```bash -$ npm install cnpm -g +$ npm i -g cnpm # will use npminstall $ cnpm install ``` @@ -307,18 +307,9 @@ npm i babel-preset-es2015 browserify chalk debug minimist mkdirp ## License [MIT](LICENSE.txt) - ## Contributors -|[
fengmk2](https://github.com/fengmk2)
|[
dead-horse](https://github.com/dead-horse)
|[
gemwuu](https://github.com/gemwuu)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
|[
killagu](https://github.com/killagu)
|[
ibigbug](https://github.com/ibigbug)
| -| :---: | :---: | :---: | :---: | :---: | :---: | -|[
vagusX](https://github.com/vagusX)
|[
afc163](https://github.com/afc163)
|[
yesmeck](https://github.com/yesmeck)
|[
popomore](https://github.com/popomore)
|[
we11adam](https://github.com/we11adam)
|[
whatwewant](https://github.com/whatwewant)
| -|[
emma-owen](https://github.com/emma-owen)
|[
weihong1028](https://github.com/weihong1028)
|[
HomyeeKing](https://github.com/HomyeeKing)
|[
nightink](https://github.com/nightink)
|[
XadillaX](https://github.com/XadillaX)
|[
LeoYuan](https://github.com/LeoYuan)
| -|[
cnlon](https://github.com/cnlon)
|[
Moudicat](https://github.com/Moudicat)
|[
hanzhao](https://github.com/hanzhao)
|[
marcbachmann](https://github.com/marcbachmann)
|[
MondoGao](https://github.com/MondoGao)
|[
snyk-bot](https://github.com/snyk-bot)
| -|[
Solais](https://github.com/Solais)
|[
thonatos](https://github.com/thonatos)
|[
atian25](https://github.com/atian25)
|[
tommytroylin](https://github.com/tommytroylin)
|[
wssgcg1213](https://github.com/wssgcg1213)
|[
yibn2008](https://github.com/yibn2008)
| -[
fossabot](https://github.com/fossabot)
|[
hugohua](https://github.com/hugohua)
|[
hyj1991](https://github.com/hyj1991)
|[
mansonchor](https://github.com/mansonchor)
|[
givingwu](https://github.com/givingwu)
|[
Abreto](https://github.com/Abreto)
+[![Contributors](https://contrib.rocks/image?repo=cnpm/npminstall)](https://github.com/cnpm/npminstall/graphs/contributors) -This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Mar 25 2023 22:23:53 GMT+0800`. - - +Made with [contributors-img](https://contrib.rocks). diff --git a/package.json b/package.json index 05be8e52..cabd325f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "npmupdate": "bin/update.js" }, "scripts": { - "contributor": "git-contributor", "test": "npm run lint && egg-bin test -t 2000000 -p", "test-local": "npm run test-local-single -- -p", "test-local-single": "npm run clean && npm_china=true local=true egg-bin test -t 2000000", @@ -55,7 +54,7 @@ "rc": "^1.2.8", "semver": "^7.0.0", "tar": "^7.5.3", - "urllib": "^3.0.3" + "urllib": "^4.9.0" }, "devDependencies": { "assert-file": "^1.0.0", @@ -64,7 +63,6 @@ "egg-bin": "^6.13.0", "eslint": "^8.31.0", "eslint-config-egg": "^12.1.0", - "git-contributor": "^2.0.0", "mm": "^3.2.1" }, "homepage": "https://github.com/cnpm/npminstall", diff --git a/test/get.test.js b/test/get.test.js index 9ffaf666..17fcac6a 100644 --- a/test/get.test.js +++ b/test/get.test.js @@ -47,7 +47,7 @@ describe('test/get.test.js', () => { console.error(err); const headers = options.headers; assert(headers.Authorization); - assert(err.message.includes('ENOTFOUND') || err.message.includes('Connect Timeout Error')); + assert(err.message.includes('ENOTFOUND') || err.message.includes('Connect Timeout Error'), err.message); assert(err.res.requestUrls.length > 0); } });