[英]REACT - not working npm while installing it
命令行上的所有命令是否從全局安裝 npm npm install -g create-react-app
以及以下代碼:
npx create-react-app <myprojectname>
並且還清除了 npm 緩存,但它總是卡在圖像中顯示以下錯誤的行上。 隨着錯誤:
┌──────────────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\Smart Sites\.config │
└──────────────────────────────────────────────────────────────────
連同65 packages are looking for funding
[1]: https://i.stack.imgur.com/KJVVp.png
這是我從創建反應應用程序的入門頁面中找到的內容。
如果您以前通過以下方式全局安裝了 create-react-app
npm install -g create-react-app,
我們建議您卸載 package 使用
npm uninstall -g create-react-app
確保 npx 始終使用最新版本。
npx create-react-app my-app
cd my-app
npm start
但在使用 npx 之前,請始終確保您有一個現有的文件夾。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.