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

Failed to npm install because of .staging folder #18902

Closed
2 of 4 tasks
ghost opened this issue Oct 19, 2017 · 3 comments
Closed
2 of 4 tasks

Failed to npm install because of .staging folder #18902

ghost opened this issue Oct 19, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2017

Hello npm team!

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

Whenever I try to npm install it throws the next error:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm ERR! path D:\Projects\tigrisconnect\application\node_modules\.staging\grpc-a7d07917\node_modules\minimist
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\Projects\tigrisconnect\application\node_modules\.staging\g
rpc-a7d07917\node_modules\minimist' -> 'D:\Projects\tigrisconnect\application\node_modules\.staging\minimist-e7d9618b'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2017-10-19T09_52_24_397Z-debug.log

Here is the list of used dependencies:

"dependencies": {
    "@uirouter/angularjs": "^1.0.3",
    "angular": "^1.6.4",
    "angular-animate": "^1.6.4",
    "angular-aria": "^1.6.4",
    "angular-base64": "^2.0.5",
    "angular-material": "^1.1.4",
    "angular-messages": "^1.6.4",
    "angular-moment": "^1.0.1",
    "angular-sanitize": "^1.6.4",
    "angular-toastr": "^2.1.1",
    "angular-translate": "^2.15.2",
    "angular-translate-loader-static-files": "^2.15.2",
    "autoprefixer": "^6.4.0",
    "axios": "^0.16.2",
    "bcryptjs": "^2.4.3",
    "body-parser": "^1.17.1",
    "bootstrap": "^3.3.7",
    "bootstrap-social": "^5.1.1",
    "connect-flash": "^0.1.1",
    "connect-session-sequelize": "^4.1.0",
    "cookie": "^0.3.1",
    "cookie-parser": "^1.4.3",
    "dotenv": "^4.0.0",
    "ejs": "^2.5.6",
    "express": "^4.15.2",
    "express-favicon": "^2.0.0",
    "express-rate-limit": "^2.9.0",
    "express-session": "^1.15.1",
    "extend": "^3.0.1",
    "firebase": "^4.3.1",
    "firebase-admin": "^5.2.1",
    "font-awesome": "^4.7.0",
    "fstream": "^1.0.11",
    "helmet": "^3.5.0",
    "html-pdf": "^2.1.0",
    "joi": "^10.2.2",
    "jquery": "^3.2.1",
    "jquery-validation": "^1.16.0",
    "jquery.easing": "^1.4.1",
    "jsforce": "^1.7.1",
    "jsonschema": "^1.1.1",
    "jsonwebtoken": "^7.3.0",
    "jwt-decode": "^2.2.0",
    "localforage": "^1.5.0",
    "lodash": "^4.17.4",
    "md5": "^2.2.1",
    "mkdirp-promise": "^5.0.1",
    "moment": "^2.18.1",
    "morgan": "^1.8.1",
    "ms": "^0.7.3",
    "nodemailer": "^4.1.2",
    "passport": "^0.3.2",
    "passport-facebook": "^2.1.1",
    "passport-google-oauth": "^1.0.0",
    "passport-google-oauth20": "^1.0.0",
    "passport-jwt": "^2.2.1",
    "passport-linkedin-oauth2": "^1.5.0",
    "passport-local": "^1.0.0",
    "pg": "^6.1.3",
    "pg-hstore": "^2.3.2",
    "pm2": "^2.4.2",
    "postcss-cli": "^2.6.0",
    "remove": "^0.1.5",
    "request-promise": "^4.2.1",
    "sanitize-filename": "^1.6.1",
    "scrollreveal": "^3.3.4",
    "sequelize": "^3.30.2",
    "socket.io": "^2.0.3",
    "spin": "^0.0.1",
    "toastr": "^2.1.2",
    "umzug": "^1.11.0",
    "unzip-stream": "^0.1.2",
    "uuid-validate": "^0.0.2",
    "winston": "^2.3.1",
    "xoauth2": "^1.2.0"
  },
  "devDependencies": {
    "babel-core": "^6.25.0",
    "babel-preset-es2015": "^6.24.1",
    "chai": "^3.5.0",
    "chai-http": "^3.0.0",
    "del": "^3.0.0",
    "gulp": "^3.9.1",
    "gulp-babel": "^6.1.2",
    "gulp-clean-css": "^3.5.0",
    "gulp-cli": "^1.3.0",
    "gulp-concat": "^2.6.1",
    "gulp-imagemin": "^3.3.0",
    "gulp-newer": "^1.3.0",
    "gulp-ng-annotate": "^2.0.0",
    "gulp-plumber": "^1.1.0",
    "gulp-postcss": "^7.0.0",
    "gulp-rename": "^1.2.2",
    "gulp-uglify": "^3.0.0",
    "mocha": "^3.2.0",
    "mocha-jscs": "^5.0.1",
    "mocha-jshint": "^2.3.1",
    "run-sequence": "^1.2.2",
    "sequelize-cli": "^2.7.0"
  }

supporting information:

  • npm -v prints: 4.6.1
  • node -v prints: 8.7.0
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: Windows 10
@ghost ghost changed the title Failed to `` Failed to npm install because of .staging folder Oct 19, 2017
@ghost
Copy link
Author

ghost commented Oct 23, 2017

Guys I really need help with this one. Anyone?

@bzalasky
Copy link

bzalasky commented Oct 23, 2017

@Mikhail1994 This isn't a perfect solution, but have you tried deleting your package-lock.json file, and regenerating it with npm install?

Actually, I just noticed you're using 4.6.1. Run npm i -g npm first.

@ghost
Copy link
Author

ghost commented Nov 29, 2017

Solved by deleting "^" before every package in dependency list

@ghost ghost closed this as completed Nov 29, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant