私は初心者のノードです。私はnodejsアプリをGoogleアプリケーションエンジンに配備することに問題があります。これは私のエラーです、私はそれを修正しようとしていますが、それは仕事ではありません。私はバベルをインストールしました。Google App EngineへのBabelとDeploy Nodejs
バグ
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error:[email protected] prestart /app npm run -s build
You have mistakenly installed the
babel
package, which is a no-op in Babel 6. Babel's CLI commands have been moved from thebabel
package to thebabel-cli
package.npm uninstall babel
npm install --save-dev babel-cli
これは、手掛かりは、エラーメッセージである私のpackage.json
"main": "dist",
"scripts": {
"dev": "NODE_ENV=development nodemon -w src --exec \"babel-node src --presets es2015,stage-0\"",
"build": "babel src -s -D -d dist --presets es2015,stage-0",
"start": "NODE_ENV=production pm2 start dist",
"prestart": "npm run -s build",
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1",
"babel-version": "babel --version"
},
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"node": true
},
"rules": {
"no-console": 0,
"no-unused-vars": 1
}
},
"author": "",
"license": "ISC",
"dependencies": {
"babel": "^6.23.0",
"body-parser": "^1.17.0",
"express": "^4.15.0",
"express-jwt": "^5.1.0",
"jsonwebtoken": "^7.3.0",
"mongoose": "^4.8.5",
"passport": "^0.3.2",
"passport-local": "^1.0.0",
"passport-local-mongoose": "^4.0.0",
"pm2": "^2.4.2"
},
"devDependencies": {
"babel-cli": "^6.23.0",
"babel-eslint": "^7.1.1",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"eslint": "^3.16.1"
}
答えは、エラーメッセージにある - NPM --save-devのバベル-cli' –