V
V
Vladimir Medvedev2021-06-14 01:20:29
Node.js
Vladimir Medvedev, 2021-06-14 01:20:29

Npm install fails with "Killed". What could be the problem?

Good time. Broke my head completely.
Everything worked, it was necessary to re-upload the entire site to the server, completely deleted the folder, re-uploaded it, run npm install, and everything freezes.
After the introduction, npm install gives an error.
The project is on nuxt, below is the package config. On the local everything works, on the VPS it gives an error. removed node_modules, removed package-lock. And I tried it through clean-install, and through --force. I completely deleted the entire folder and uploaded it again, it's still the same.
node version is the same on machines 14.17.0, npm is also the same on 7.14.0.
package.json:

{
  "name": "",
  "version": "1.1.0",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
    "lint:style": "stylelint \"**/*.{vue,css}\" --ignore-path .gitignore",
    "lint": "npm run lint:js && npm run lint:style"
  },
  "lint-staged": {
    "*.{js,vue}": "eslint",
    "*.{css,vue}": "stylelint"
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
      "pre-commit": "lint-staged"
    }
  },
  "dependencies": {
    "@nuxtjs/axios": "^5.13.1",
    "@nuxtjs/pwa": "^3.3.5",
    "@nuxtjs/robots": "^2.5.0",
    "core-js": "^3.9.1",
    "nuxt": "^2.2.0",
    "vuelidate": "^0.7.6"
  },
  "devDependencies": {
    "@commitlint/cli": "^12.0.1",
    "@commitlint/config-conventional": "^12.0.1",
    "@mdi/font": "^5.9.55",
    "@nuxtjs/eslint-config": "^6.0.0",
    "@nuxtjs/eslint-module": "^3.0.2",
    "@nuxtjs/stylelint-module": "^3.2.2",
    "@nuxtjs/vuetify": "^1.11.3",
    "babel-eslint": "^10.1.0",
    "eslint": "^7.22.0",
    "eslint-config-prettier": "^8.1.0",
    "eslint-plugin-nuxt": "^2.0.0",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-vue": "^7.7.0",
    "fibers": "^5.0.0",
    "husky": "^4.3.8",
    "lint-staged": "^10.5.4",
    "prettier": "^2.2.1",
    "pug": "^3.0.2",
    "pug-plain-loader": "^1.1.0",
    "sass": "^1.34.0",
    "sass-loader": "^10.2.0",
    "stylelint": "^9.3.0",
    "stylelint-config-prettier": "^7.0.0",
    "stylelint-config-standard": "^18.3.0"
  }
}


Just ends with Killed .........] \ reify:fsevents: timing reifyNode:node_modules/watchpack/node_modules/watchpack-chokidar2/node_modules/fsevents Completed in 776ms


60c684328785b164871142.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Medvedev, 2021-06-14
@Vertenz

Thanks to stack 38127667/npm-install-ends-with-killed :)
The problem is lack of memory. Everything was solved by adding a 1GB swap file. I did it through fallocate, because I didn’t know if this was exactly the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question