neutralinojs / neutralinojs-cli

neu cli for Neutralinojs
https://neutralino.js.org/docs/cli/neu-cli
MIT License
91 stars 57 forks source link

error instalation #188

Closed xor256 closed 10 months ago

xor256 commented 1 year ago
neu create myapp
/usr/local/lib/node_modules/@neutralinojs/neu/src/utils.js:42
    return path?.replace(/^\//, '');
                ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@neutralinojs/neu/src/modules/downloader.js:7:15)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@neutralinojs/neu/src/modules/creator.js:4:20)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
hv6erT commented 1 year ago

Which version of node js do you have?

shalithasuranga commented 1 year ago

Hey @hv6erT, yeah seems like a Node.js version issue. @xor256 Please check: https://github.com/neutralinojs/neutralinojs-cli#requirements

AntumDeluge commented 1 year ago

@shalithasuranga Thanks for the link. I was using my package manager's version of Node, which is 12. Switching to the more recent Snap package works (I don't know how to use the Flatpak version).

shalithasuranga commented 10 months ago

Closing this since the issue was resolved with this discussion. Thanks :tada: