long.js: 404 Not Found: @xtuc/long@4.2.1
env: node v8.9.4 npm 6.4.1 yarn 1.6.0
webpack4 depends on this package, but npm i /yarn install
failed with ‘Maximum call stack size exceeded’ error.
npm error log
7022 http fetch GET 404 https://registry.npmjs.org/@xtuc%2flong 898ms
7023 silly fetchPackageMetaData error for @xtuc/long@4.2.1 404 Not Found: @xtuc/long@4.2.1
7024 verbose stack RangeError: Maximum call stack size exceeded
7024 verbose stack at RegExp.test (<anonymous>)
7024 verbose stack at isDepOptional (/usr/local/lib/node_modules/npm/lib/install/deps.js:398:27)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:414:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7024 verbose stack at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
7025 verbose cwd /Users/lbp/projects/htc/router5
7026 verbose Darwin 17.4.0
7027 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
7028 verbose node v8.9.4
7029 verbose npm v6.4.1
7030 error Maximum call stack size exceeded
7031 verbose exit [ 1, true ]
yarn error log
Trace:
Error: https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.1.tgz: Request failed "404 Not Found"
at ResponseError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:212:66)
at new ResponseError (/usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:318:124)
at Request.<anonymous> (/usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:61933:26)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.module.exports.Request.onRequestResponse (/usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:134041:10)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 20 (1 by maintainers)
If I comment out the _auth setting in my npmrc, the install works fine. Otherwise I get the 404 and “Maximum call stack size exceeded”
I have the same issue
running in empty folder:
Indeed there is a workaround of removing the .npmrc file:
However this workaround is not acceptable, if one needs to have this file (i.e. using organization npm registry with internal packages).
Can this get some attention, removing the npmrc is a not an option, need to use private registries
It worked for me so far by keeping older version of webpack. I ran
npm cache clean --force
before and use"webpack": "4.17.1"