neutralinojs/neutralinojs-cli

npm install not working for mac

M00ny0z opened this issue ยท 5 comments

Running npm install -g @neutralinojs/neu runs successfully with output:

changed 145 packages, and audited 146 packages in 2s

14 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

But running neu create myapp results in -bash: neu: command not found

This has nothing to do with neutralinojs, so this issue should be closed.


It works fine for me. It depends on how you set up your npm / shell.
Obviously the folder where you install npm packages globally must be in your PATH.

Depending on how you installed npm, your installer will have taken care of this. Because of how many ways there are to install npm, you'll have to figure this out yourself.

Here are various solutions (some bad / dangerous, some good) to this: https://stackoverflow.com/questions/14803978/npm-global-path-prefix

and fedora linux

.npm/_npx/0214858268217ccb/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)

uname -a
Linux ee233 5.11.22-100.fc32.x86_64 #1 SMP Wed May 19 18:58:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

@M00ny0z I just checked out for the same on Mac. It works pretty fine, Can you please check and let me know if the issue persists? Close the issue in case its working fine.

yes , this is working fine
@shalithasuranga i think you can close it

Thanks all for re-testing this issue, so I'll close it then ๐ŸŽ‰