当我尝试在AWS上部署我的新的node.js应用程序时,出现了错误。
Failed to find package.json. Node.js may have issues starting. Verify package.json is valid or place code in a file named server.js or app.js.
我已经验证了我的package.json文件,它显示为true。
我的package.json文件如下:
{
"name": "sgcp",
"private": true,
"version": "0.0.0",
"description": "a Sails application",
"dependencies": {
"sails": "0.9.7",
"nodemailer": "~0.6.1",
"grunt": "0.4.1",
"sails-disk": "~0.9.0",
"ejs": "0.8.4",
"optimist": "0.3.4",
"sails-mongo": "~0.9.7"
},
"scripts": {
"start": "node app.js",
"debug": "node debug app.js"
},
"main": "app.js",
"repository": "git@github.com:xteam/xcp.git",
"author": "sg",
"license": "Proprietory",
"engines": {
"node": "0.10.x"
}
}
非常感谢您的帮助。非常感激。