[英]"No files matching the pattern "src" were found." when using "npx eslint src" or "npx eslint src/"
[英]npx command not found. For reactJS
react-web
。npx create-react- app .
npx
命令。 這還沒有發生過。 然后我運行npx -v
'找不到 npx 命令' 。
我決定安裝npx。 我運行sudo npm i -g npx
這就是我得到的(參考圖片)在此處輸入圖像描述。 我該如何解決這個問題?
嘗試這個:
node
是否安裝。 嘗試運行node -v
node
添加到環境變量。 如果您的node
版本低於 5.2,請考慮將npx
更新或安裝為:
npm i -g npx
好的。 我終於做到了。
這是我必須遵循的步驟。
/usr/local/bin/
sudo rm -i npx
sudo npm i -g npx
希望能幫到有需要的人。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.