gulp 4: env: node\r: No such file or directory
See original GitHub issueUsing gulp 4, I can build via the command line, but running the same as an npm script fails. e.g.
# succeeds
$ gulp
# this script simply runs "gulp", but fails with
# "env: node\r: No such file or directory"
$ npm run build
Other npm commands work, such as npm start
which runs node index
.
Any ideas on how to get a better error message to track this down?
gulp 4 OS X 10.11.6 node 6.4.0 npm 3.10.3
edit
Solution
Issue was with line endings in git
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
env: node: No such file or directory in mac - Stack Overflow
I solved it this way: $ brew uninstall --force node $ brew uninstall --force npm. after it $ brew install node.
Read more >env: node: No such file or directory when using nvm - YouTrack
Found a temporary workaround: just manually append $PATH with node from nvm in debug configuration environment variables. While that works, it is of...
Read more >"/usr/bin/env: 'node': No such file or directory" even though it is ...
However, it tells me that node is not in my bin even though I downloaded the binary and added the location to my...
Read more >npm --version /usr/bin/env: 'node': No such file or directory Code ...
Answers related to “npm --version /usr/bin/env: 'node': No such file or directory”. /usr/bin/env: 'bash\r': No such file or directory.
Read more >node: No such file or directory' Error in IntelliJ IDEA File Watcher
This helped me with another related issue. Trying to run gulp tasks in our project resulted in the same error. Adding the PATH...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
AH LINE ENDINGS! Re-installed my entire dev environment 😅
Don’t use that package…