Node.js Heroku部署失败,似乎是bcrypt问题
我试图将我的学校项目部署到heroku中,但当我键入git push heroku master时,我将得到以下错误“ 这是我的package.json文件Node.js Heroku部署失败,似乎是bcrypt问题,node.js,heroku,bcrypt,Node.js,Heroku,Bcrypt,我试图将我的学校项目部署到heroku中,但当我键入git push heroku master时,我将得到以下错误“ 这是我的package.json文件 { "name": "Eatz", "version": "1.0.0", "description": "This is CSCC09 Fall 2014 project", "main": "app.js", "engines":{ "node":0.10.33 }, "dependencies":
{
"name": "Eatz",
"version": "1.0.0",
"description": "This is CSCC09 Fall 2014 project",
"main": "app.js",
"engines":{
"node":0.10.33
},
"dependencies": {
"bcrypt": "^0.8.1",
"express": "^3.4.8",
"gm": "^1.17.0",
"mongodb": "^1.4.24",
"mongoose": "^3.8.20",
"underscore": "^1.7.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/zhengye1/CSCC09"
},
"author": "Vincent Zheng, Eliot Chow",
"license": "UTSC",
"bugs": {
"url": "https://github.com/zhengye1/CSCC09/issues"
},
}
我该如何解决这个问题?我已经尝试过在互联网上查找,但似乎找不到解决方案。我正在使用Ubuntu 14.04创建项目。尝试重建bcrypt
我在mac上遇到同样的错误,我通过重建bcrypt来修复它
npm重建bcrypt
<>我认为Helku在BLIPT中有一些关于C++库的问题。 我所有的努力都失败了,最后,我找到了一个替代模块。它几乎和bcrypt一样,与heroku没有任何问题
{
"name": "Eatz",
"version": "1.0.0",
"description": "This is CSCC09 Fall 2014 project",
"main": "app.js",
"engines":{
"node":0.10.33
},
"dependencies": {
"bcrypt": "^0.8.1",
"express": "^3.4.8",
"gm": "^1.17.0",
"mongodb": "^1.4.24",
"mongoose": "^3.8.20",
"underscore": "^1.7.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/zhengye1/CSCC09"
},
"author": "Vincent Zheng, Eliot Chow",
"license": "UTSC",
"bugs": {
"url": "https://github.com/zhengye1/CSCC09/issues"
},
}