node-nightly
node-nightly copied to clipboard
TypeError: Cannot read properties of undefined (reading 'version')
$ npm install --global node-nightly
$ node-nightly
Checking for update...
TypeError: Cannot read properties of undefined (reading 'version')
at /usr/local/lib/node_modules/node-nightly/node_modules/node-nightly-version/index.js:17:70
at processTicksAndRejections (node:internal/process/task_queues:96:5)
$ cat /usr/local/lib/node_modules/node-nightly/node_modules/node-nightly-version/index.js
'use strict';
const fetch = require('isomorphic-fetch');
const nightlyVersions = require('node-nightly-versions');
const osArch = `${process.platform}-${process.arch}`;
const osVerMap = {
'win32-x64':'win-x64-msi',
'win32-x86':'win-x86-msi',
'darwin-x64':'osx-x64-pkg',//darwin is os name for osx
'darwin-x86':'osx-x86-tar',
'linux-x64':'linux-x64',
'linux-x86':'linux-x86',
'sunos-x64':'sunos-x64',
'sunos-x86':'sunos-x86'
}
$ npm -v
8.5.5
$ uname -a
Darwin MBP 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
The same problem, don't support mac os m1(darwin-arm64), any solution?
The same problem in mac os m2, any solution?
Same issue on m1-max
Same issue on m1-pro, any solution?
I tried downloading osx-x64-pkg
and it seems to be working. Just edited the node-nightly-version/index.js
file as below:
module.exports = () => nightlyVersions()
.then(versions => versions['osx-x64-pkg'].version);