[BUG] env: node\\r: No such file or directory when run refine cli
See original GitHub issueDescribe 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
- npm run refine create-resource
- input provider as name
- 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:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top 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 >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
It works well on MacOS.
Hey @0xuhe, It was released to solve these problems. Can you update
@pankod/refine-cli@1.13.0
and try again?