2017-09-26 65 views
0

這是我得到的錯誤。它說運行npm錯誤提醒程序。我做到了,但沒有任何效果。我的代碼有npm的sfcookies。當我早些時候部署它說sfcookies沒有下載....類似的東西。所以我嘗試在依賴關係下在package.json上鍵入sfcookies,但那不起作用。現在有一個特定的方式來把這些放在heroku上,我是否錯過了一些。 (我用CREATE-反應,應用的初始安裝)我嘗試在heroku中部署反應應用程序,但失敗了

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! [email protected] build: `react-scripts build` 
    remote: npm ERR! Exit status 1 
    remote: npm ERR! 
    remote: npm ERR! Failed at the [email protected] 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. 

這是我的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" 
    } 
} 

回答

0

是構建腳本被稱爲前安裝?

您應該顯示您的package.json的代碼,因爲我可以更好地掌握Heroku調用您的腳本的順序。

+0

好的,我添加了package.json。對不起,我沒有得到安裝部分? – Ash

+0

嘗試將所有包從devDependencies移動到您的依賴項下。 – MisterSnow

+0

ahhhh我沒有看到devDependencies在那裏? – Ash