nodemon: Nodemon and Fedora `node: No such file or directory`
If you try to run
$ nodemon server.js
You’ll get :
/usr/bin/env: node: No such file or directory
This is because in Fedora node is called nodejs
This can be fixed by changing: #!/usr/bin/env node on the first line of /usr/lib/node_modules/nodemon/nodemon.js to #!/usr/bin/env nodejs
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Reactions: 1
- Comments: 17 (3 by maintainers)
The solution/workaround is really simple. This is Linux 101:
Fedora and Ubuntu pakage node as
nodejs, because node.dpkg isThey make the binary is
nodejs, rather thannode. So long as you’re not using that Packet Radio Node Program mentioned above the workaround will work.thanks @codekiln for helping out the stray googler 😃