[英]I tried deploying the react app in heroku but it failed
This is the error that I got. 这是我得到的错误。 It says run the npm bugs reminderpro.
它说运行npm bugs hinterpro。 I did that but nothing works.
我做到了,但没有任何效果。 My code has sfcookies from npm.
我的代码有来自npm的sfcookies。 When i deployed earlier it said that sfcookies did not download.... something like that.
当我较早部署时,它说sfcookies没有下载....类似的东西。 So i tried typing sfcookies on package.json under dependencies but that did not work too.
所以我尝试在依赖项下的package.json上键入sfcookies,但这也没有用。 Now is there a SPECIFIC way to put these on heroku, am i missing somehting.
现在有一种特定的方式将它们放到heroku上,我想念什么吗。 (I used create-react-app for initial installation)
(我使用create-react-app进行初始安装)
remote: npm ERR! Linux 3.13.0-128-generic
remote: npm ERR! argv "/tmp/build_d018c5494b246e95e5185c9297b315ce/.heroku/node/ bin/node" "/tmp/build_d018c5494b246e95e5185c9297b315ce/.heroku/node/bin/npm" "ru n" "build"
remote: npm ERR! node v6.11.3
remote: npm ERR! npm v3.10.10
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! reminderpro@0.1.0 build: `react-scripts build`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the reminderpro@0.1.0 build script 'react-scripts bui ld'.
remote: npm ERR! Make sure you have the latest version of node.js and npm instal led.
remote: npm ERR! If you do, this is most likely a problem with the reminderpro p ackage,
remote: npm ERR! not with npm itself.
remote: npm ERR! Tell the author that this fails on your system:
remote: npm ERR! react-scripts build
remote: npm ERR! You can get information on how to open an issue for this projec t with:
remote: npm ERR! npm bugs reminderpro
remote: npm ERR! Or if that isn't available, you can get their info via:
remote: npm ERR! npm owner ls reminderpro
remote: npm ERR! There is likely additional logging output above.
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_d018c5494b246e95e5185c9297b315ce/npm-debug.log
remote: ! Push rejected, failed to compile React.js (create-react-app) mult i app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sheltered-plateau-76958.
This is my package.json: 这是我的package.json:
{
"name": "reminderpro",
"version": "0.1.0",
"private": true,
"dependencies": {
"moment": "^2.18.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-redux": "^5.0.6",
"react-scripts": "1.0.13",
"redux": "^3.7.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
Is the build script being called before the install? 在安装之前是否会调用构建脚本?
You should show the code for your package.json as I could better get a grasp of the order Heroku calls your scripts. 您应该显示package.json的代码,因为我更好地了解了Heroku调用脚本的顺序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.