Node.js Docker Containear中的平均应用程序
我试图将Mean应用程序放入docker Containear中,但出现以下错误:Node.js Docker Containear中的平均应用程序,node.js,docker,mean-stack,Node.js,Docker,Mean Stack,我试图将Mean应用程序放入docker Containear中,但出现以下错误: npm ERR! code ENOENT npm ERR! errno 34 npm http 200 https://registry.npmjs.org/mongoose npm http GET https://registry.npmjs.org/mongoose/-/mongoose-4.4.6.tgz npm http 200 https://registry.
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/mongoose/-/mongoose-4.4.6.tgz
npm http 200 https://registry.npmjs.org/mongodb
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/mongodb/-/mongodb-2.0.55.tgz
npm http GET https://registry.npmjs.org/express/-/express-4.12.4.tgz
npm http 200 https://registry.npmjs.org/mongoose/-/mongoose-4.4.6.tgz
npm http 200 https://registry.npmjs.org/express/-/express-4.12.4.tgz
npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-2.0.55.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /src/npm-debug.log
npm ERR! not ok code 0
这是我的包。json:
{
"name": "app",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"async": "~0.9.0",
"body-parser": "~1.12.4",
"connect-flash": "~0.1.1",
"cookie-parser": "~1.3.5",
"debug": "~2.2.0",
"ejs": "^2.3.4",
"express": "~4.12.4",
"jade": "~1.9.2",
"mongodb": "~2.0.33",
"mongoose": "^4.2.5",
"monk": "https://github.com/vccabral/monk.git",
}
}
而且Containear没有创建,有什么建议吗?谢谢大家! 请参见节点js站点()的示例
只需输入docker文件“FROM node:argon”您正在运行哪个版本的docker,它在哪个平台上运行?(例如,在OS X/Boot2Docker或Ubuntu 15.10上运行)。想知道这是否类似于Docker版本1.8.2-el7.centos,构建a01dc02/1.8.2