help icon indicating copy to clipboard operation
help copied to clipboard

Get a 409 conflict issue

Open shaliniranga opened this issue 5 years ago • 7 comments

  • Node.js Version: v10.15.3
  • OS: windows
  • Scope (install, code, runtime, meta, other?): install
  • Module (and version) (if relevant): all modules

I get below error, I am on corporate network with proxy enabled. I did set the proxy. On installing i get below error.

I am new to node and hence struggling. Please help.

PS C:\Users\Shalini.Ranga\Documents\nodejs_training\node-app> npm install chalk --timing npm http fetch GET 409 https://registry.npmjs.org/chalk 42ms npm timing stage:rollbackFailedOptional Completed in 1ms npm timing stage:runTopLevelLifecycles Completed in 306ms npm ERR! code E409 npm ERR! 409 Conflict: chalk@latest

shaliniranga avatar Mar 15 '19 11:03 shaliniranga

0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'chalk', 1 verbose cli '--timing' ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session 5aa753c5ef74501d 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 409 https://registry.npmjs.org/chalk 42ms 8 silly fetchPackageMetaData error for chalk@latest 409 Conflict: chalk@latest 9 timing stage:rollbackFailedOptional Completed in 1ms 10 timing stage:runTopLevelLifecycles Completed in 306ms 11 verbose stack Error: 409 Conflict: chalk@latest 11 verbose stack at fetch.then.res (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19) 11 verbose stack at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23) 11 verbose stack at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31) 11 verbose stack at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18) 11 verbose stack at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10) 11 verbose stack at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18) 11 verbose stack at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16) 11 verbose stack at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10) 11 verbose stack at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14) 11 verbose stack at runCallback (timers.js:705:18) 11 verbose stack at tryOnImmediate (timers.js:676:5) 11 verbose stack at processImmediate (timers.js:658:5) 12 verbose cwd C:\Users\Shalini.Ranga\Documents\nodejs_training\node-app 13 verbose Windows_NT 10.0.17134 14 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "chalk" "--timing" 15 verbose node v10.15.3 16 verbose npm v6.4.1 17 error code E409 18 error 409 Conflict: chalk@latest 19 verbose exit [ 1, true ]

shaliniranga avatar Mar 15 '19 11:03 shaliniranga

@shaliniranga - is this still an issue?

gireeshpunathil avatar Jul 02 '19 09:07 gireeshpunathil

@shaliniranga - is this still an issue?

I also saw this error today when running npm install @angular/[email protected]: npm ERR! 409 Conflict - GET https://registry.npmjs.org/pacote.

And when re-attempting the same, got: npm ERR! 409 Conflict - GET https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz

bunkerdives avatar Jul 02 '19 15:07 bunkerdives

@shaliniranga - is this still an issue?

I also saw this error today when running npm install @angular/[email protected]: npm ERR! 409 Conflict - GET https://registry.npmjs.org/pacote.

And when re-attempting the same, got: npm ERR! 409 Conflict - GET https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz

Hi! Were You able to solve the issue? I am getting similar error while installing a package. Kindly if you can help me.

theCreatorAniket avatar Sep 28 '22 04:09 theCreatorAniket

@shaliniranga @theCreatorAniket Are we still having this issue

Ref https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409

preveen-stack avatar Jun 22 '23 11:06 preveen-stack

Remove the "resolved": and/or "integrity": entries for the package in package-lock.json as it is likely getting the wrong hash.

wtfiwtz avatar Sep 01 '23 07:09 wtfiwtz

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] avatar May 15 '24 01:05 github-actions[bot]

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] avatar Jun 14 '24 01:06 github-actions[bot]