我正在尝试部署我的应用程序,但不起作用。我的package.json脚本:
"scripts": {
"serve": "live-server public --port=8091",
"build": "webpack",
"dev-server": "webpack-dev-server",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"运行npm run deploy时出错:
ENOENT: no such file or directory, stat 'C:\Users\Luiz\Desktop\udemy\react-course-projects\indecision-app\build'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! indecision-app@1.0.0 deploy: `gh-pages -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the indecision-app@1.0.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.发布于 2021-03-14 22:23:05
您必须包括,您的github页面的链接也作为主页属性。
像这样的"homepage": "<link of you github page for this project>"。
示例:"homepage": "https://hsnice16.github.io/4kids/"
https://stackoverflow.com/questions/56889147
复制相似问题