KumologicaHQ / kumologica-support

3 stars 0 forks source link

Linux: 'npm' binary not found #1

Closed dror-g closed 4 years ago

dror-g commented 4 years ago

Deploy step executes npm binary using /bin/npm. However, the executable binary is not always present at this precise location, i.e when using NVM node version manager, in which case it's available in /home/<user>/.nvm/versions/node/v13.6.0/bin/npm.

Perhaps it's best to remove the /bin/ path and call npm using system $PATH.

(can be resolved temporarily by user creating a symlink in /bin/)

dror-g commented 4 years ago

Same applies to the node command

bjq-dev commented 4 years ago

We don't use explicit path to call npm. The lambda build command is simple npm call. We had similar issue on mac, looks like https://www.npmjs.com/package/fix-path doesn't fix it for linux. Fix to investigate.

bjq-dev commented 4 years ago

0.9.4 version released.

Note: for electron to pick up path with npm, the default alias should be set by calling:

nvm alias default {specific node version}