Mupx init returns /usr/bin/env: node: No such file or directory(solved)


#1

Should i just create mup.json and settings.json. How do i fix this.


#2

it means mupx is not installed (at least node can’t find it)


#3

I installed mupx with npm install -g mup before getting this error


#4

It means that node is not in your path when the script is executed. You can fix that by executing

sudo ln -s \which node` /usr/local/bin/node`

once. You need to remove the \ from the command. This is just for the forum :smiley:


#5

mup and mupx are two different modules. Did you just typo or did you actually mix these two up?


#6

just checked it is typo and just to be sure i removed mupx and tried it all thing again


#7

@Sanjo doing that returns ln: target ‘/usr/local/bin/node’ is not a directory


#8

I installed sudo apt-get install nodejs-legacy that fixed it thanks