Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to use a proxy such as jFrog's Artifactory, npm install fails #111

Closed
corydorning opened this issue Apr 14, 2020 · 2 comments
Closed

Comments

@corydorning
Copy link

Trying to use jFrog Artifactory as my npm registry, which proxies the public npm repsository and for some reason this package fails with the following error:

npm http fetch GET 400 https://jfrog.mydomain.com/artifactory/api/npm/npm-virtual/command-line-args/-/command-line-args-5.1.1.tgz 159ms
npm verb stack Error: 400 Bad Request: command-line-args@5.1.1
npm verb stack     at fetch.then.res (D:\node\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
npm verb stack     at tryCatcher (D:\node\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
npm verb stack     at Promise._settlePromiseFromHandler (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
npm verb stack     at Promise._settlePromise (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
npm verb stack     at Promise._settlePromise0 (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
npm verb stack     at Promise._settlePromises (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
npm verb stack     at Async._drainQueue (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
npm verb stack     at Async._drainQueues (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
npm verb stack     at Immediate.Async.drainQueues (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
npm verb stack     at runCallback (timers.js:810:20)
npm verb stack     at tryOnImmediate (timers.js:768:5)
npm verb stack     at processImmediate [as _immediateCallback] (timers.js:745:5)
...
npm verb node v8.12.0
npm verb npm  v6.4.1
npm ERR! code E400
npm ERR! 400 Bad Request: command-line-args@5.1.1

Oddly enough, its the only one that fails out of over 60 modules. If i remove this module from package.json, npm install runs fine.

@corydorning
Copy link
Author

Occasionally, it gets passed the 400 Bad Request and I get this:

npm verb stack Error: 404 Not Found: array-back@^3.0.1
npm verb stack     at fetch.then.res (D:\node\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
npm verb stack     at tryCatcher (D:\node\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
npm verb stack     at Promise._settlePromiseFromHandler (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
npm verb stack     at Promise._settlePromise (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
npm verb stack     at Promise._settlePromise0 (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
npm verb stack     at Promise._settlePromises (D:\node\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
npm verb stack     at Async._drainQueue (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
npm verb stack     at Async._drainQueues (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
npm verb stack     at Immediate.Async.drainQueues (D:\node\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
npm verb stack     at runCallback (timers.js:810:20)
npm verb stack     at tryOnImmediate (timers.js:768:5)
npm verb stack     at processImmediate [as _immediateCallback] (timers.js:745:5)
npm verb cwd D:\CBJ\a7c97ac5\workspace\mple-application_develop-BD-pass
npm verb Windows_NT 10.0.14393
npm verb argv "D:\\node\\node.exe" "D:\\node\\node_modules\\npm\\bin\\npm-cli.js" "install" "--verbose"
npm verb node v8.12.0
npm verb npm  v6.4.1
npm ERR! code E404
npm ERR! 404 Not Found: array-back@^3.0.1

@75lb
Copy link
Owner

75lb commented Apr 14, 2020

I'm sorry, this is beyond my control and not something i can fix.. command-line-args installs fine using npm.

@75lb 75lb closed this as completed Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants