{"_id":"nodeinstall","_rev":"1212722","name":"nodeinstall","description":"[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"popomore","email":""}],"time":{"modified":"2021-10-13T05:46:24.000Z","created":"2016-09-09T15:56:52.226Z","0.1.3":"2017-05-12T10:15:57.102Z","0.1.2":"2017-05-11T14:09:39.836Z","0.1.1":"2016-10-15T00:47:23.438Z","0.1.0":"2016-10-14T22:16:05.577Z","0.0.0":"2016-09-09T15:56:52.226Z"},"users":{"leizongmin":true},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/cnpm/nodeinstall.git"},"versions":{"0.1.3":{"name":"nodeinstall","version":"0.1.3","description":"[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down","dependencies":{"bytes":"^2.5.0","co":"^4.6.0","commander":"^2.9.0","debug":"^2.6.6","extend":"^3.0.1","mkdirp":"^0.5.1","node-nightly-version":"^1.0.6","only":"^0.0.2","progress":"^2.0.0","semver":"^5.3.0","tar":"^2.2.1","urllib":"^2.22.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^3.3.1","egg-bin":"^1.10.3","egg-ci":"^1.6.0","eslint":"^3.19.0","eslint-config-egg":"^4.1.0","rimraf":"^2.6.1"},"main":"lib/index.js","files":["bin","lib"],"engines":{"node":">=4.0.0"},"scripts":{"start":"node index.js","dev":"egg-bin dev","test":"npm run lint && egg-bin test","test-china":"NODEINSTALL_CHINA=true egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js .","ci":"npm run lint && DEBUG=nodeinstall* npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"repository":{"type":"git","url":"git+https://github.com/cnpm/nodeinstall.git"},"bin":{"nodeinstall":"bin/nodeinstall.js"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"38ddc4bb161646a10aa5cdf9cbf5fc829bd9db01","bugs":{"url":"https://github.com/cnpm/nodeinstall/issues"},"homepage":"https://github.com/cnpm/nodeinstall#readme","_id":"nodeinstall@0.1.3","_shasum":"0fb745e427a10d09df95fe68e5d462417323fc8f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"0fb745e427a10d09df95fe68e5d462417323fc8f","size":7495,"noattachment":false,"key":"/nodeinstall/-/nodeinstall-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/nodeinstall/download/nodeinstall-0.1.3.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/nodeinstall-0.1.3.tgz_1494584154191_0.11416034470312297"},"directories":{},"publish_time":1494584157102,"_cnpm_publish_time":1494584157102,"_hasShrinkwrap":false},"0.1.2":{"name":"nodeinstall","version":"0.1.2","description":"[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down","dependencies":{"bytes":"^2.5.0","co":"^4.6.0","commander":"^2.9.0","debug":"^2.6.6","extend":"^3.0.1","mkdirp":"^0.5.1","node-nightly-version":"^1.0.6","only":"^0.0.2","progress":"^2.0.0","semver":"^5.3.0","tar":"^2.2.1","urllib":"^2.22.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^3.3.1","egg-bin":"^1.10.3","egg-ci":"^1.6.0","eslint":"^3.19.0","eslint-config-egg":"^4.1.0","rimraf":"^2.6.1"},"main":"lib/index.js","files":["bin","lib"],"engines":{"node":">=4.0.0"},"scripts":{"start":"node index.js","dev":"egg-bin dev","test":"npm run lint && egg-bin test","test-china":"NODEINSTALL_CHINA=true egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js .","ci":"npm run lint && DEBUG=nodeinstall* npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"repository":{"type":"git","url":"git+https://github.com/cnpm/nodeinstall.git"},"bin":{"nodeinstall":"bin/nodeinstall.js"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"a613f54d33f1be038fe7b2916d83e4552bc69f8f","bugs":{"url":"https://github.com/cnpm/nodeinstall/issues"},"homepage":"https://github.com/cnpm/nodeinstall#readme","_id":"nodeinstall@0.1.2","_shasum":"4f3461a47a471d6b820f06f0e63c5a08c8d6b659","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"4f3461a47a471d6b820f06f0e63c5a08c8d6b659","size":7459,"noattachment":false,"key":"/nodeinstall/-/nodeinstall-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nodeinstall/download/nodeinstall-0.1.2.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/nodeinstall-0.1.2.tgz_1494511777160_0.942662610206753"},"directories":{},"publish_time":1494511779836,"_hasShrinkwrap":false,"_cnpm_publish_time":1494511779836},"0.1.1":{"name":"nodeinstall","version":"0.1.1","description":"[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down","dependencies":{"bytes":"^2.4.0","co":"^4.6.0","commander":"^2.9.0","debug":"^2.2.0","extend":"^3.0.0","mkdirp":"^0.5.1","node-nightly-version":"^1.0.6","only":"^0.0.2","progress":"^1.1.8","semver":"^5.3.0","tar":"^2.2.1","urllib":"^2.17.0"},"devDependencies":{"autod":"^2.7.1","coffee":"^3.3.0","egg-bin":"^1.4.0","egg-ci":"^1.0.3","eslint":"^3.8.0","eslint-config-egg":"^3.1.0","intelli-espower-loader":"^1.0.1","power-assert":"^1.4.1","rimraf":"^2.5.4"},"main":"lib/index.js","files":["bin","lib"],"engines":{"node":">=4.0.0"},"scripts":{"start":"node index.js","dev":"egg-bin dev","test":"npm run lint && egg-bin test -r intelli-espower-loader","test-china":"NODEINSTALL_CHINA=true egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","lint":"eslint --ext js .","ci":"npm run lint && DEBUG=nodeinstall* npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"repository":{"type":"git","url":""},"bin":{"nodeinstall":"bin/nodeinstall.js"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"fb7141971646aefe489eb1686c023c0028b6e771","_id":"nodeinstall@0.1.1","_shasum":"fde68cf971c918cf32162bd2cb186f1bc192d2fb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"fde68cf971c918cf32162bd2cb186f1bc192d2fb","size":7448,"noattachment":false,"key":"/nodeinstall/-/nodeinstall-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nodeinstall/download/nodeinstall-0.1.1.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nodeinstall-0.1.1.tgz_1476492441431_0.8106714796740562"},"directories":{},"publish_time":1476492443438,"_cnpm_publish_time":1476492443438,"_hasShrinkwrap":false},"0.1.0":{"name":"nodeinstall","version":"0.1.0","description":"Another node installer that bundle node with application.","dependencies":{"bytes":"^2.4.0","co":"^4.6.0","debug":"^2.2.0","mkdirp":"^0.5.1","node-nightly-version":"^1.0.6","only":"^0.0.2","progress":"^1.1.8","semver":"^5.3.0","tar":"^2.2.1","urllib":"^2.13.1"},"devDependencies":{"autod":"^2.7.1","cheerio":"^0.22.0","coffee":"^3.2.5","egg-bin":"^1.3.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","egg-view-nunjucks":"^0.3.0","eslint":"^3.5.0","eslint-config-egg":"^3.1.0","intelli-espower-loader":"^1.0.1","power-assert":"^1.4.1","rimraf":"^2.5.4","supertest":"^2.0.0"},"main":"lib/index.js","files":["bin","lib"],"engines":{"node":">=4.0.0"},"scripts":{"start":"node index.js","dev":"egg-bin dev","test":"npm run lint && egg-bin test -r intelli-espower-loader","test-china":"NODEINSTALL_CHINA=true egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","lint":"eslint --ext js .","ci":"npm run lint && DEBUG=nodeinstall* npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"repository":{"type":"git","url":""},"bin":{"nodeinstall":"bin/nodeinstall.js"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","gitHead":"51c1062dd02f761b2b975b1701fc74b5e3cba36f","_id":"nodeinstall@0.1.0","_shasum":"b97366c8eb35d96675edb5355da5c6c9911461b2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"b97366c8eb35d96675edb5355da5c6c9911461b2","size":6951,"noattachment":false,"key":"/nodeinstall/-/nodeinstall-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nodeinstall/download/nodeinstall-0.1.0.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nodeinstall-0.1.0.tgz_1476483363796_0.992696781642735"},"directories":{},"publish_time":1476483365577,"_cnpm_publish_time":1476483365577,"_hasShrinkwrap":false},"0.0.0":{"name":"nodeinstall","version":"0.0.0","gitHead":"fbe7fca0ead619820c4ad4d56c4ec89b4de194b9","description":"","_id":"nodeinstall@0.0.0","scripts":{},"_shasum":"9ed0c7b655770b28ec38d6e9489dd859a85e6595","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"9ed0c7b655770b28ec38d6e9489dd859a85e6595","size":203,"noattachment":false,"key":"/nodeinstall/-/nodeinstall-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nodeinstall/download/nodeinstall-0.0.0.tgz"},"maintainers":[{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nodeinstall-0.0.0.tgz_1473436610672_0.023968091001734138"},"directories":{},"publish_time":1473436612226,"_cnpm_publish_time":1473436612226,"_hasShrinkwrap":false}},"readme":"# Nodeinstall\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/nodeinstall.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/nodeinstall\n[travis-image]: https://img.shields.io/travis/cnpm/nodeinstall.svg?style=flat-square\n[travis-url]: https://travis-ci.org/cnpm/nodeinstall\n[codecov-image]: https://codecov.io/gh/cnpm/nodeinstall/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/cnpm/nodeinstall\n[david-image]: https://img.shields.io/david/cnpm/nodeinstall.svg?style=flat-square\n[david-url]: https://david-dm.org/cnpm/nodeinstall\n[snyk-image]: https://snyk.io/test/npm/nodeinstall/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/nodeinstall\n[download-image]: https://img.shields.io/npm/dm/nodeinstall.svg?style=flat-square\n[download-url]: https://npmjs.org/package/nodeinstall\n\nAnother node installer that bundle node with application.\n\n## Why\n\nNodeinstall is not a node version switcher, it will install node locally(in node_modules). Then you can deploy application everywhere without Node installed.\n\nYou can start application with `npm start` easily, npm will find node from `$PWD/node_modules/.bin/node`\n\nNodeinstall let application use the same node version in every environment(local development for production).\n\n## Installation\n\n```shell\n$ npm install nodeinstall -g\n```\n\n## Feature\n\n- ✔︎ Install Node to Local\n- ✔︎ Support [Alinode] and [NSolid]\n- ✔︎ Support RC and nighly\n- ✔︎ Package Define\n- ✔︎ Ignore Unsafe Versions\n\n## Usage\n\nInstall node to node_modules\n\n```shell\n$ nodeinstall 6.0.0\n$ ./node_modules/.bin/node -v\n```\n\nYou can use semver range to match the real version\n\n```shell\n$ nodeinstall ^6.0.0\n$ ./node_modules/.bin/node -v\n```\n\nYou can also use nodeinstall to install [Alinode] or [NSolid]\n\n```shell\n$ nodeinstall --install-alinode 1.6.0\n$ ./node_modules/.bin/node -p 'process.versions.alinode'\n$ nodeinstall --install-nsolid 1.6.0\n$ ./node_modules/.bin/node -p 'process.versions.nsolid'\n```\n\nYou can define version in package.json\n\n```json\n{\n  \"engines\": {\n    \"install-node\": \"^6.0.0\"\n  }\n}\n```\n\nAlso support\n\n- `install-alinode` for [Alinode]\n- `install-nsolid` for [NSolid]\n- `install-noderc`\n- `install-nightly`\n\n**If you are in China, you can use `--china` flag to speed up.**\n\n## API\n\n```js\nconst co = require('co');\nconst install = require('nodeinstall').install;\nco(function* () {\n  yield install({\n    version: '^6.0.0',\n  });\n});\n```\n\n### Options\n\n#### cwd\n\nThe current directory, default is `process.cwd`.\n\n#### version\n\nThe version that you want to install, it also can be semver range that get the right version automatically.\n\nVersion matching is based on distUrl.\n\n#### distUrl\n\nThe url where to donwload the tarball, You can find all distUrl in [config.js](https://github.com/cnpm/nodeinstall/blob/master/lib/config.js).\n\n#### china\n\nUse the mirror distUrl in china for speed.\n\n#### cache\n\n#### unsafeVersions\n\nThe Map contains the unsafe version and the safe version.\n\nFor example, if you install 4.0.0 that is defined in unsafeVersions as an unsafe version, it will install 4.5.0 instead.\n\n```\nconst unsafeVersions = {\n  '>= 1.0.0 < 4.4.4': '4.5.0',\n};\n```\n\n#### installNode\n\nInstall Node, it's a default options. Ignore when package define matched..\n\n#### installNoderc\n\nInstall Node RC, ignore when package define matched.\n\n#### installAlinode\n\nInstall Alinode, ignore when package define matched.\n\n#### installNsolid\n\nInstall NSolid, ignore when package define matched.\n\n#### installNightly\n\nInstall Node nightly, always be the latest version, ignore when package define matched.\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## Lisence\n\nMIT\n\n[Alinode]: http://alinode.aliyun.com/\n[NSolid]: https://nodesource.com/products/nsolid/\n","_attachments":{},"homepage":"https://github.com/cnpm/nodeinstall#readme","bugs":{"url":"https://github.com/cnpm/nodeinstall/issues"},"license":"MIT"}