-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodemon and Fedora node: No such file or directory
#68
Comments
That's not the right solution, but I think there's a way of fixing it via I'll look in to this over the w/e if I can. On 24 February 2012 16:08, Mark Lorenz <
|
I agree with you, manually changing that line is not the right way. It was just a proof-of-concept. Thanks for looking into it Remy! |
Hmm, crap. I've been looking in to this and it doesn't seem there's a clean solution :-\ One suggestion was to use What scripts did you find that had the |
I only have express and nodemon installed right now, and your right they both tried to use
|
I had to do one more thing to get Nodemon going on Fedora. I had to search This is also not a "solution" but I don't think I can live without nodemon, so I'll deal with it. If there's a good way to register nodejs with Fedora instead as |
@dapplebeforedawn - what's the workaround you developed? When I tried editing |
For the stray googler that lands on this page: the workaround that worked for me was editing |
thanks @codekiln for helping out the stray googler :) |
Contributing: For CentOS 6, just add nodemon to your $PATH. |
Just commenting on this - but I'm really unsure if there's any way around this problem (other than the change from @codekiln)? i.e. not having to use the hashbang in the nodemon.js script? |
The solution/workaround is really simple. This is Linux 101:
Fedora and Ubuntu pakage node as
They make the binary is |
Commenting here because it comes up on google when you search for it, wanted to say that for some people this might happens still even if your path is correct. What happened is my new sublime text install entered in CRLF instead of LF, running "dos2unix" on your files, or using your IDE to save them properly will fix it. |
@cstockton 👍 DOS2UNIX is correct approach . |
Thanks, helped me very... |
it may be better to use nvm on linux, it can save you much time from chores, tested for years :) |
Hi i have same problem, when i am trying to ssh & start node from different server its throwing me error env: node: No such file or directory installed node as binary in centos 7 and gave path in bash_profile, it works fine when i run from save server, node version is 8.9.2 |
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 callednodejs
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
The text was updated successfully, but these errors were encountered: