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.

[BUG] env: node\\r: No such file or directory when run refine cli

See original GitHub issue

Describe the bug

There is an error when run refine cli npm run refine create-resource,

The error message is:


 shortMessage: 'Command failed with exit code 127: /Users/john/learning/panel/node_modules/jscodeshift/bin/jscodeshift.js ./ --extensions=ts,tsx,js,jsx --parser=tsx --transform=/Users/john/learning/panel/node_modules/@pankod/refine-cli/dist/../src/transformers/resource.ts --ignore-pattern=**/.cache/** --ignore-pattern=**/node_modules/** --ignore-pattern=**/build/** --ignore-pattern=**/.next/** --__actions=list,create,edit,show --__pathAlias=../src/components --__resourceFolderName=providers --__resource=Provider --__resourceName=provider',

 exitCode: 127,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'env: node\\r: No such file or directory',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false

Steps To Reproduce

  1. npm run refine create-resource
  2. input provider as name
  3. enter

Expected behavior

Fill resource attribute in <Refine> tag. Create providers/xxx.ts

Screenshot

No response

Desktop

No response

Mobile

No response

Additional Context

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
0xuhecommented, Dec 6, 2022

Hey @0xuhe, It was released to solve these problems. Can you update @pankod/refine-cli@1.13.0 and try again?

It works well on MacOS.

0reactions
yildirayunlucommented, Dec 6, 2022

Hey @0xuhe, It was released to solve these problems. Can you update @pankod/refine-cli@1.13.0 and try again?

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 >
run npm command gives error "/usr/bin/env: node: No such file ...
I installed via sudo make install. npm still fails: /work/qpp$ sudo npm install -g grunt-cli /usr/bin/env: node: No ...
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 >
run npm command gives error “/usr/bin/env: node: No such file ...
I stucked in this issue while setting up a project an I've found this is often a misnaming error, if you install from...
Read more >
usr/bin/env node: No such file of directory - Server Fault
local/bin not globally. Just deleted it, reloaded the supervisor and now the application is running nicely :) Hope it helps someone.
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