我正在将我的应用程序部署到 github 页面,但是当我运行命令时却npm run deploy收到错误
npm ERR! missing script: deploy
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\whoami\AppData\Roaming\npm-cache\_logs\2020-02-05T16_46_06_946Z-debug.log
Run Code Online (Sandbox Code Playgroud)
我已经在 package.json 文件中定义了部署
...
"scripts": {
"test": "jest --watchAll --verbose --coverage --runInBand",
"start": "node index.js",
"predeploy":"npm run build",
"deploy":"gh-pages -d build"
}
...
Run Code Online (Sandbox Code Playgroud)