国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

部署React應用程式到GitHub Pages時所遇到的挑戰(zhàn)
P粉611456309
P粉611456309 2023-08-16 15:59:12
0
1
594
<p><br /></p> <pre class="brush:php;toolbar:false;">PS C:UsersPanchOneDriveDesktopYourself2> npm run deploy npm ERR! 缺少腳本: "deploy" npm ERR! npm ERR! 若要查看腳本列表,請執(zhí)行: npm ERR! npm run npm ERR! 可在此執(zhí)行的完整日誌位於: C:UsersPanchAppDataLocalnpm-cache_logs2023-08-15T16_47_39_705Z-debug-0.log PS C:UsersPanchOneDriveDesktopYourself2></pre> <p>所有可能的方式</p>
P粉611456309
P粉611456309

全部回覆(1)
P粉141925181

看起來你沒有在package.json中定義任務(自己檢查一下)。由於你正在使用React,請確保已安裝gh-pages npm套件

npm install gh-pages --save-dev

此外,你還需要在package.json檔案的scripts物件下定義任務:

"predeploy": "npm run build",
   "deploy": "gh-pages -d build",

例如,我的一個github頁面React應用程式有以下內(nèi)容:

"scripts": {
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build",
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
},

依照指示取得更詳細的答案:https://github.com/gitname/react-gh-pages

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板