
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
nodeinstall
Advanced tools
[![NPM version][npm-image]][npm-url] [](https://github.com/cnpm/nodeinstall/actions/workflows/nodejs.yml) [![Test coverage][codecov-image]][codecov-url] [![npm downlo
Another node installer that bundle node with application.
Nodeinstall is not a node version switcher, it will install node locally(in node_modules). Then you can deploy application everywhere without Node installed.
You can start application with npm start
easily, npm will find node from $PWD/node_modules/.bin/node
Nodeinstall let application use the same node version in every environment(local development for production).
$ npm install nodeinstall -g
Install node to node_modules
$ nodeinstall 6.0.0
$ ./node_modules/.bin/node -v
You can use semver range to match the real version
$ nodeinstall ^6.0.0
$ ./node_modules/.bin/node -v
You can also use nodeinstall to install Alinode or NSolid
$ nodeinstall --install-alinode 1.6.0
$ ./node_modules/.bin/node -p 'process.versions.alinode'
$ nodeinstall --install-nsolid 1.6.0
$ ./node_modules/.bin/node -p 'process.versions.nsolid'
You can define version in package.json
{
"engines": {
"install-node": "^18.0.0"
}
}
Also support
If you are in China, you can use --china
flag to speed up.
const install = require('nodeinstall').install;
await install({
version: '^18.0.0',
});
The current directory, default is process.cwd
.
The version that you want to install, it also can be semver range that get the right version automatically.
Version matching is based on distUrl.
The url where to donwload the tarball, You can find all distUrl in config.js.
Use the mirror distUrl in china for speed.
The Map contains the unsafe version and the safe version.
For example, if you install 4.0.0 that is defined in unsafeVersions as an unsafe version, it will install 4.5.0 instead.
const unsafeVersions = {
'>= 1.0.0 < 4.4.4': '4.5.0',
};
Install Node, it's a default options. Ignore when package define matched..
Install Node RC, ignore when package define matched.
Install Alinode, ignore when package define matched.
Install NSolid, ignore when package define matched.
Install Node nightly, always be the latest version, ignore when package define matched.
Please open an issue here.
MIT
popomore | fengmk2 | gemwuu | richardo2016 | brucewar | lceric |
---|
This project follows the git-contributor spec, auto updated at Sat Dec 10 2022 01:18:52 GMT+0800
.
FAQs
[![NPM version][npm-image]][npm-url] [](https://github.com/cnpm/nodeinstall/actions/workflows/nodejs.yml) [![Test coverage][codecov-image]][codecov-url] [![npm downlo
The npm package nodeinstall receives a total of 267 weekly downloads. As such, nodeinstall popularity was classified as not popular.
We found that nodeinstall demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.