What if npm can't find the node /usr/bin/env: ‘node’: No such file or directory
Aug 2022 1 min read Aleksey Dorogov
Fixed! There is a popular issue when you try to make bower install and get the error about /usr/bin/env: "node": No such file or directory. It’s easy to fix.
for example, you get something like that
root@space:/var/www/space/public# bower install
/usr/bin/env: ‘node’: No such file or directory
To fix it, just make a symbolic link for your node-js in /usr/bin folder, and that’s it!
root@space:/usr/bin# node
node-gyp nodejs
root@space:/usr/bin# ln -s nodejs node Sitting on a version of this problem right now? I'd rather look at it than guess.
Email me