installing node/npm on ubuntu 16 cant find npm

  docker, node.js, npm

Im installing node in ubuntu16.04 via docker. I need to use this version due to a dependency issue.

After running:

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

I can find nodejs in /usr/bin and i can run nodejs
but i cant find npm using which, and the command is not in my path. I was under the impression node and npm were installed together, and would expect npm to be in /usr/bin but i cant find it to put it in my path

Can anyone help?

Source: Docker Questions

LEAVE A COMMENT