M
M
MaksimLav2019-01-17 14:38:57
Node.js
MaksimLav, 2019-01-17 14:38:57

Why doesn't npm install work?

On one of the machines, when the command "npm install" does not install the project - it gives an error:
5c406805dfc82668476652.png
Contents of the package.json file:

{
  "name": "project-template",
  "version": "1.0.0",
  "description": "template with Bootstrap 4",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Maksim Lavreynuk",
  "license": "ISC",
  "devDependencies": {
    "@fancyapps/fancybox": "^3.5.6",
    "animate.css": "^3.7.0",
    "bootstrap": "^4.2.1",
    "browser-sync": "^2.18.13",
    "del": "^3.0.0",
    "fullpage.js": "^3.0.4",
    "gulp": "^3.9.1",
    "gulp-autoprefixer": "^4.0.0",
    "gulp-cache": "^0.4.6",
    "gulp-clean-css": "^3.9.0",
    "gulp-imagemin": "^3.3.0",
    "gulp-plumber": "^1.1.0",
    "gulp-rigger": "^0.5.8",
    "gulp-sass": "^3.1.0",
    "gulp-sourcemaps": "^2.6.1",
    "gulp-uglify": "^3.0.0",
    "imagemin-jpeg-recompress": "^5.1.0",
    "imagemin-pngquant": "^5.0.1",
    "jquery": "^3.3.1",
    "owl.carousel": "^2.3.4",
    "popper.js": "^1.14.6",
    "rellax": "^1.7.2",
    "slick-carousel": "^1.8.1",
    "wow.js": "^1.2.2"
  }
}

From the log:

3399 silly saveTree `-- [email protected]
3400 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...48j9ONFK1MoIAKKkbE8i7'
3400 verbose stack at JSON.parse()
3400 verbose stack at parseJson (C:\ Program Files\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
3400 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm \node_modules\node-fetch-npm\src\body.js:96:50)
3400 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
3401 verbose cwd C:\Users\P\Desktop \15.09.19\example
3402 verbose Windows_NT 6.1.7601
3403 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
3404 verbose node v10.15.0
3405 verbose npm v6.4.1
3406 error Unexpected end of JSON input while parsing near '...48j9ONFK1MoIAKKkbE8i7'
3407 verbose exit [ 1, true ]

Tell me, what is the problem, why is it installed on one machine, not on the other?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question