npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Timeout error while running npm install

What I Wanted to Do

we retrieve the .npmrc file including the (readonly) token for from a shared location.we run cmd /C npm install @vp-ui-accountancy-legacy-prebuilt-%BRANCH% @vp-ui-accountancy-current-prebuilt-%BRANCH% --verbose to retrieve the private packages with .npmrc in the same directory.

What Happened Instead

Sometimes this results in the npm install command hanging without producing any output -

Reproduction Steps

we tried with flag --loglevel silly, but it did not give much info about failures!


2018-10-30T08:27:56.7875762Z npm http fetch GET 200 154ms
2018-10-30T08:27:56.8093556Z npm sill extract fs-extra@2.0.0 extracted to D:\a\1\s\node_modules.staging\fs-extra-93208507 (273ms)
2018-10-30T08:27:57.0075862Z npm http fetch POST 401 945ms
2018-10-30T08:27:57.6231070Z npm timing audit submit Completed in 1129ms
2018-10-30T08:27:57.6233930Z npm http fetch POST 200 1129ms
2018-10-30T08:27:57.6235500Z npm timing audit body Completed in 0ms
2018-10-30T08:37:21.8520808Z Terminate batch job (Y/N)?
2018-10-30T08:37:21.8539500Z Terminate batch job (Y/N)? -->

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->

Try adding --no-audit to your install command.