I try to create a new react project:
npx create-react-app my-app
I get an error:
bash: /usr/bin/npx: No such file or directory
Tried solution:
ln -s /usr/bin/nodejs /usr/bin/node
ln: failed to create symbolic link '/usr/bin/node': File exists
The version:
npm -v npx
6.14.14
What should I do?
which npx
/usr/local/bin/npx
.
ls -l /usr/bin | grep npx
(no result)
.
whereis npx
npx: /usr/local/bin/npx /usr/share/man/man1/npx.1
For me, the solution was to restart the bash terminal.