npm-installer icon indicating copy to clipboard operation
npm-installer copied to clipboard

Crash during startup on Win10 x64

Open nitwhiz opened this issue 7 years ago • 2 comments

installed it locally, nw build in package.json crashed and when installed globally running it via nw . it crashes. Both with TypeError: Cannot read property 'split' of undefined

stdout: TypeError: Cannot read property 'split' of undefined at module.exports (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\lib\old-version.js:2:19) at module.exports (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\lib\get-path.js:10:26) at Command.module.exports (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\lib\run.js:16:16) at Command.listener (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\node_modules\commander\index.js:300:8) at emitOne (events.js:115:13) at Command.emit (events.js:210:7) at Command.parseArgs (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\node_modules\commander\index.js:637:12) at Command.parse (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\node_modules\commander\index.js:457:21) at Object.<anonymous> (C:\Users\Andy\AppData\Roaming\npm\node_modules\nwjs\nw:64:18) at Module._compile (module.js:624:30)

Using it downloaded from the website works.

nitwhiz avatar Nov 12 '17 10:11 nitwhiz

I have the same problem on macOS 10.13.1 with globally installed by npm

Siunaus avatar Nov 17 '17 02:11 Siunaus

@daintycode I have resolve this , try this way https://www.npmjs.com/package/nwjs

Siunaus avatar Nov 17 '17 03:11 Siunaus