Open
Description
I've installed Node by Snap. npm has been installed together, but I'm not able to use it as a simple npm
command automatically, I need to use /snap/bin/npm
instead.
I can create an alias manually, but I believe that the installation to do this automatically would be better.
I've used the following commands:
$ sudo snap install node --classic
node (14/stable) 14.17.0 from OpenJS Foundation (iojs✓) installed
$ node -v
nv14.17.0
$ npm -v
bash: /usr/local/bin/npm: No such file or directory
$ which node
/snap/bin/node
$ which npm
/snap/bin/npm
$ /snap/bin/npm -v
6.14.13
I'm using Ubuntu 18.04.5.
Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels
Activity