When I try to run Node.js applications from under Supervisor I get following error:
/usr/bin/env node: No such file of directory
It is a machine running Ubuntu 16.04 and actually there is /usr/bin/node installed and it is symlinked to /usr/bin/nodejs. I installed it from Node.js repository. So when I run
node -v
/usr/bin/env node -v
I get:
v9.7.1
My application's configuration for Supervisor (v 3.2.0) is:
[program:verdaccio]
command=/usr/bin/verdaccio
autostart=true
autorestart=true
user=ubu
environment=HOME="/home/ubu",USER="ubu",PATH="$PATH:/home/ubu/.local/bin"
What's wrong?
Best Answer
if you are using
nvm
node version manager, use this comment to create a symlink: