"无法在Ubuntu 16.04.2中安装以下组件 Linux框的版本获取错误,附带屏幕截图" 试图在LINUX盒中安装NPM组件,但它在中间被杀死
{
"name": "legaldialapis",
"version": "1.0.0",
"scripts": {
"start": "set NODE_ENV=DEV",
"test": "mocha apis/**/test/**/*.spec.js",
"test-watch": "nodemon --exec npm test",
"code-cov": "nyc --reporter=lcov --reporter=text-lcov npm test",
"eslint": "eslint **/*.js > lint-report.txt",
"bump": "gulp bump"
},
"dependencies": {
"ajv": "^4.9.2",
"ajv-error-messages": "^1.0.0",
"async": "^2.1.4",
"bcryptjs": "^2.4.3",
"body-parser": "~1.15.2",
"bunyan": "^1.8.5",
"cookie-parser": "~1.4.3",
"dateformat": "^2.0.0",
"debug": "~2.2.0",
"express": "~4.14.0",
"firebase": "^3.7.2",
"firebase-admin": "^4.1.3",
"json2yaml": "^1.1.0",
"jsonwebtoken": "^7.2.1",
"lodash": "^4.17.4",
"moment": "^2.17.1",
"mongodb": "^2.2.22",
"mongoose": "^4.8.1",
"mongoose-gen": "^2.1.1",
"request": "^2.79.0",
"serve-favicon": "~2.3.0",
"swagger-jsdoc": "^1.8.2",
"swagger-ui-express": "^1.0.2",
"validator": "^6.2.1",
"html-pdf": "2.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
"chai-http": "^3.0.0",
"del": "^2.2.2",
"eslint": "^3.14.1",
"eslint-config-google": "^0.7.1",
"gulp-bump": "^2.6.1",
"mocha": "^3.2.0",
"nyc": "^10.0.0",
"yargs": "^6.6.0",
"gulp": "^3.9.1",
"gulp-livereload": "^3.8.1",
"gulp-mocha": "^3.0.1",
"gulp-nodemon": "^2.2.1",
"gulp-folders": "^1.1.0",
"gulp-replace": "^0.5.4",
"gulp-util": "^3.0.8"
},
"engines": {
"node": ">=0.10.0"
}
}
答案 0 :(得分:0)
Wellm,错误消息显示:verison 3及更早版本中的 graceful-fs 与 NodeJs 版本7及更高版本不兼容。所以你有两个选择
npm ls graceful-fs
在树中查找它。”) 6.10.x
的当前LTS版本如果您还没有完整的概述,那么您的依赖项是否是最新的,则可以运行npm outdated。
希望这有帮助。
可能是对你的问题的一般评论:
答案 1 :(得分:0)
最后,我找到了解决方案。 将Ubuntu Droplet的空间从512 MB RAM和10GB ROM增加到2GB RAM和20GB ROM。
此问题是由于空间问题造成的。
感谢您的回答