Package Exports
- node-install-release
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-install-release) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-install-release
Cross-platform solution for installing releases of Node.js.
var assert = require('assert')
var installRelease = require('node-install-release')
var installPath = path.join(INSTALL_DIR, 'v12-darwin-x64');
// callback - choose the platform and arch
installRelease('v12', installPath, { platform: 'darwin', arch: 'x64' }, function (err, res) {
assert.ok(!err);
});
// promise - default for the system
await installRelease('v12', installPath);
// promise - from source (using https://nodejs.org/dist/index.json filename)
await installRelease('v12', installPath, { filename: 'src' });