Cannot install NodeJs: /usr/bin/env: node: No such file or directory

后端 未结 18 1331
野趣味
野趣味 2020-11-28 00:01

I\'m trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs.

I\'ve read about Ubuntu different way of doing it (issues?), so this is what I\'ve done i

18条回答
  •  迷失自我
    2020-11-28 00:56

    Depending on how you installed your node, most of the time it might not be in /usr/bin/, in my own case it was I used nvm to install so my node was in ./nvm/versions.

    Using this command which node I found out the path, but to make the work easier you can run this command.

    nodepath=$(which node); sudo ln -s $nodepath /usr/bin/node
    

    the above command will get the location of your node and create a link for you.

提交回复
热议问题