[英]npx command not found. For reactJS
react-web
.react-web
。npx create-react- app .
npx
command not found.npx
命令。 This haven't happen earlier. Then I run npx -v
然后我运行
npx -v
'npx command not found' . '找不到 npx 命令' 。
I decide to install npx.我决定安装npx。 I run
sudo npm i -g npx
And this is what I get(refer the picture) enter image description here .我运行
sudo npm i -g npx
这就是我得到的(参考图片)在此处输入图像描述。 How do I tackle this?我该如何解决这个问题?
Try this:尝试这个:
node
is install.node
是否安装。 Try running node -v
node -v
node
to environment variables.node
添加到环境变量。 Incase you have node
version less than 5.2, consider updating or installing npx
as:如果您的
node
版本低于 5.2,请考虑将npx
更新或安装为:
npm i -g npx
Ok.好的。 I did it finally.
我终于做到了。
Here are the steps I had to follow.这是我必须遵循的步骤。
/usr/local/bin/
/usr/local/bin/
sudo rm -i npx
sudo rm -i npx
sudo npm i -g npx
sudo npm i -g npx
Hope it helps someone in need.希望能帮到有需要的人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.