I have an issue. Whenever I try to run any npx command on my windows 11 system I get this error
C:\Users\JOEL MATHEW\node_modules.bin/../node/bin/node: line 1: This: command not found
I have been facing this issue for a long time and it's still bothering me.
$ npx -v
9.5.0
$ npm -v
9.5.0
$ node -v
v18.14.2
$ npx create-react-app test
C:\Users\JOEL MATHEW\node_modules\.bin/../node/bin/node: line 1: This: command not found
This image shows the error that is printed on my terminal after I run create-react-app .
I finally fixed my issue.
I received the error every time I ran the following $ eas build -p android --profile preview $ eas build -p android
Steps to fix: Navigate to: C:\Users\USRN\AppData\Roaming\npm\node_modules\node\bin\
On mine I found two node files, one that was a .exe and other other as just a text file
So I deleted the non executable file.
Hope this helps someone in future
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With