npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Local module not installed on windows

What I Wanted to Do

Install all “dependencies” with “npm i”.

“dependencies”: {
“atob”: “^2.1.2”,
“auth”: “file:src/packages/auth”,
“email-validator”: “^1.0.7”,
“errors”: “file:src/packages/errors”,
“express-async-handler”: “^1.1.4”,
“http-errors”: “file:src/packages/http-errors”,
“installation-pins”: “file:src/packages/installation-pins”,
“isomorphic-fetch”: “^2.2.1”,
“jasmine”: “^2.8.0”,
“prompt”: “^1.0.0”,
“router”: “^1.3.0”,
“shortid”: “^2.2.8”,”: “^1.4.5”,
“strength”: “^0.1.4”,
“throat”: “^4.1.0”,
“throttled-promise”: “^1.0.1”,
“underscore”: “^1.8.3”,
“winston”: “^2.4.0”,
“winston-daily-rotate-file”: “^1.7.2”,
“xml-parser”: “^1.2.1”,
“xml2js”: “^0.4.17”

What Happened Instead

It installed all modules but not the http-errors package. I had to run the “npm i” command multiple times to have a clean installation. This the package.json of the http-errors module, direct child of the http-errors folder:

“name”: “http-errors”,
“version”: “0.0.0”,
“description”: “”,
“main”: “index.js”,
“author”: “Giordano Arman”,
“license”: “ISC”,
“dependencies”: {}

Reproduction Steps

The sourcecode is proprietary, I cannot provide any example repo.

Platform Info

$ npm --versions
{ nod: '1.1.0',
  npm: '5.4.2',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.7.0',
  openssl: '1.0.2l',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.42',
  zlib: '1.2.11' }

$ node -p process.platform

Thanks a lot people! :slight_smile:

Does this still happen if you use the latest npm? You’re using a fairly old version right now.

I can’t use the latest npm since it appears only on a particular machine that hosts our production app. I will update you as soon as I manage to test it on the same machine with the latest Node.js + npm set available at that time.