question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

env: node\r: No such file or directory

See original GitHub issue

Do you want to request a feature or report a bug?

a bug.

What is the current behaviour?

When I run preact build in version 3.0.2 I’m receiving the error below:

env: node\r: No such file or directory

If the current behaviour is a bug, please provide the steps to reproduce.

  1. yarn add preact-cli@3.0.2
  2. yarn preact build
preact.config.js

https://gist.github.com/gabrielrtakeda/d9a2f75d91d5eb302295eb51eff8d104

What is the expected behaviour?

To build properly.

If this is a feature request, what is motivation or use case for changing the behaviour?

Please mention other relevant information.

Please paste the results of preact info here.

preact info in 3.0.2 also gives this error. Follow below the preact info using 3.0.1

Environment Info:
  System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  Binaries:
    Node: 14.11.0 - /var/folders/40/hmnm06wd6dv_q5pklkjdh5dc0000gn/T/yarn--1600377853618-0.2735555090153792/node
    Yarn: 1.22.5 - /var/folders/40/hmnm06wd6dv_q5pklkjdh5dc0000gn/T/yarn--1600377853618-0.2735555090153792/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.11.0/bin/npm
  Browsers:
    Chrome: 85.0.4183.102
    Firefox: 77.0.1
    Safari: 13.1.2
  npmPackages:
    preact: ^10.4.8 => 10.4.8
    preact-cli: ^3.0.1 => 3.0.1
    preact-render-to-string: ^5.1.10 => 5.1.10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
rschristiancommented, Sep 17, 2020

That’s due the CRLF line endings on the latest deploy, sorry. It’s been noted.

You can downgrade to v3.0.1 ("preact-cli": "3.0.1",) or do something along the lines of the following:

vim node_modules/preact-cli/lib/index.js

:se ff=unix
:wq
3reactions
prateekbhcommented, Oct 1, 2020

published 3.0.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

env: node: No such file or directory in mac - Stack Overflow
I get this error running npm start through PyCharm on Mac. For that the answer is to start PyCharm ...
Read more >
how to avoid env: node: No such file or directory #1702 - GitHub
What steps did you perform? I commented the loading nvm script in shell to make my terminal loads faster, then load nvm whenever...
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 >
Fixing "env: node : No such file or directory" on mac for an ...
If you install an npm package using yarn and you get this error it means that the package author is using windows line...
Read more >
env: node: No such file or directory - Laracasts
Hi,. When running the command: npm install. I get the error: env: node: No such file or directory. Could someone help me please?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found