Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm crashing during install #20295

Open
tomers opened this issue Apr 10, 2018 · 2 comments
Open

npm crashing during install #20295

tomers opened this issue Apr 10, 2018 · 2 comments
Labels

Comments

@tomers
Copy link

tomers commented Apr 10, 2018

I'm opening this issue because:

  • [x ] npm is crashing.

What's going wrong?

$ vue -V
3.0.0-beta.6

$ npm i
[..................] | rollbackFailedOptional: verb npm-session 19230af1d2c8861c
[ .................] - preinstall:moo_frontend: info lifecycle moo_frontend@1.0.0~preinstall: moo_frontend@1.0.0
[ .................] \ loadIdealTree:loadAllDepsIntoIdealTree: sill install loadIdealTree
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

How can the CLI team reproduce the problem?

supporting information:

  • npm -v prints:
    5.8.0
  • node -v prints:
    v8.11.1
  • npm config get registry prints:
    https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?:
    CentOS 6.9

package.json:

$ cat package.json 
{
  "name": "moo_frontend",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve --open",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "depracated_dev": "node build/dev-server.js",
    "depracated_start": "node build/dev-server.js"
  },
  "dependencies": {
    "axios": "^0.18.0",
    "moment": "^2.22.0",
    "numeral": "^2.0.6",
    "shuffle-array": "^1.0.1",
    "vue": "^2.5.13",
    "vue-infinite-loading": "^2.2.3",
    "vue-paginate": "^3.6.0",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1",
    "vuex-rest-api": "^2.6.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.0.0-beta.6",
    "@vue/cli-plugin-eslint": "^3.0.0-beta.6",
    "@vue/cli-service": "^3.0.0-beta.6",
    "babel-plugin-import-glob": "^2.0.0",
    "node-sass": "^4.8.3",
    "sass-loader": "^6.0.7",
    "vue-template-compiler": "^2.5.13"
  },
  "babel": {
    "presets": [
      "@vue/app"
    ],
    "plugins": [
      "import-glob"
    ]
  },
  "eslintConfig": {
    "root": true,
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ]
  },
  "postcss": {
    "plugins": {
      "autoprefixer": {}
    }
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}
@monsdroid
Copy link

Can Confirm, fails on Windows 10 as well.
Call like this until fix "serve": "node node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js serve",

@nsnikolaev
Copy link

nsnikolaev commented Jun 26, 2018

+1
But! I do npm run build and again npm run serve. And it's work!
AND! When I use admin rights (sudo npm run serve) it's also work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants