我一直尝试部署的NodeJs应用程序始终显示错误:
[错误] Bash以代码“ 1”退出。
{
"name": "test1",
"version": "1.0.0",
"main": "app.js",
"scripts": {
"start": "node app.js",
"dev": "nodemon app.js",
"build": " "
},
"keywords": ["app.js"],
"author": "",
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"connect-flash": "^0.1.1",
"ejs": "^2.6.2",
"express": "^4.17.1",
"express-ejs-layouts": "^2.5.0",
"express-session": "^1.16.2",
"i": "^0.3.6",
"mongoose": "^5.6.5",
"passport": "^0.4.0",
"passport-local": "^1.0.0"
},
"devDependencies": {
"nodemon": "^1.19.1"
},
"description": ""
}
答案 0 :(得分:0)
首先,请检查工件中是否存在所需文件的路径。下载您要部署的工件,并确保package.json和app.js在根目录中(或在您要部署的代理目录中)。
为进一步诊断,我认为您需要为您的问题提供更详细的描述,例如