
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
install-nw
Advanced tools
Quickly and robustly install and cache NW.js.
Installs the nw module, which
in turn installs NW.js. install-nw compliments nw by implementing resumable, multi-threaded downloads and archive caching.
This module is mainly intended for usage as a caching install mechanism for other modules.
npm i --save install-nw
It installs an executable in local to a project in node_modules/.bin, since NPM sets this folder as your path during install, we can simply do this in our package.json
{
"scripts" : {
"postinstall": "install-nw"
},
"nw": "0.12.0-1"
}
Note the addition of the nw field,
this holds the version of NW.js to install.
npm install --nwjs_cache=/path/to/cache
export NWJS_CACHE=/path/to/cache
npm install
This can also be added to an .npmrc file:
nwjs_cache=/path/to/cache
See CLI cache argument for details
npm install --nwjs_urlbase=https://my.nwjs.repo/v
export NWJS_CACHE=https://my.nwjs.repo/v
npm install
This can also be added to an .npmrc file:
nwjs_urlbase=https://my.nwjs.repo/v
See CLI urlBase argument for details
It can be used as a global install too,
npm -g install install-nw
install-nw 0.12.0-1
Not supplying a version will result in the latest NW.js version.
cachenw-install will install to the default cache location (~/.nw-cache), to install else where (say to ~/Applications), simply pass a --cache argument.
install-nw --cache ~/Applications
urlBaseThe default urlBase is as per the nw module:
http://dl.nwjs.io/v
This can be changed with a --urlBase argument:
install-nw --urlBase https://my.nwjs.repo/v
nw-install can also be used programmatically
var install = require('nw-install');
var opts = {
filePath: '/path/to/save/nwjs/zipfile',
url: ' http://dl.nwjs.io/v0.12.0-1/nwjs-v0.12.0-1-osx-x64.zip',
version: '0.12.0-1',
isGlobal: false
};
install(opts, function (err) {
if (err) {
console.log(err.message);
return process.exit(err.code);
}
process.exit();
});
MIT license.
Sponsored by nearForm
FAQs
Quickly and robustly install and cache NW.js.
The npm package install-nw receives a total of 16 weekly downloads. As such, install-nw popularity was classified as not popular.
We found that install-nw demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.