Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save richburroughs/193b779c48529d53d93961e55a586677 to your computer and use it in GitHub Desktop.
Save richburroughs/193b779c48529d53d93961e55a586677 to your computer and use it in GitHub Desktop.
NPM errors
npm verb stack Error: unable to resolve dependency tree
npm verb stack at Arborist.[failPeerConflict] (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1210:25)
npm verb stack at Arborist.[placeDep] (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1313:32)
npm verb stack at /opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:904:46
npm verb stack at Array.map (<anonymous>)
npm verb stack at Arborist.[buildDepStep] (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:904:8)
npm verb stack at async Arborist.buildIdealTree (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:217:7)
npm verb stack at async Promise.all (index 1)
npm verb stack at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:134:5)
npm verb stack at async Install.install (/opt/homebrew/lib/node_modules/npm/lib/install.js:137:5)
npm verb cwd /Users/rich/code/docusaurus
npm verb Darwin 20.4.0
npm verb argv "/opt/homebrew/Cellar/node/16.0.0_1/bin/node" "/opt/homebrew/bin/npm" "install" "--ignore-scripts=false" "--verbose" "sharp"
npm verb node v16.0.0
npm verb npm v7.10.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/flux
npm ERR! flux@"^4.0.1" from [email protected]
npm ERR! node_modules/react-json-view
npm ERR! react-json-view@"^1.21.3" from [email protected]
npm ERR! packages/docusaurus-plugin-debug
npm ERR! peer react@">=0.14.9" from [email protected]
npm ERR! node_modules/prism-react-renderer
npm ERR! prism-react-renderer@"^1.0.1" from [email protected]
npm ERR! node_modules/react-live
npm ERR! react-live@"^2.2.3" from [email protected]
npm ERR! packages/docusaurus-theme-live-codeblock
npm ERR! prism-react-renderer@"^1.1.1" from [email protected]
npm ERR! packages/docusaurus-theme-bootstrap
npm ERR! 3 more (docusaurus-theme-live-codeblock, ...)
npm ERR! 40 more (react-dom, react-json-view, react-helmet, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.4" from [email protected]
npm ERR! packages/docusaurus-theme-bootstrap
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/rich/.npm/eresolve-report.txt for a full report.
npm verb exit 1
npm timing npm Completed in 2974ms
npm verb code 1
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/rich/.npm/_logs/2021-05-25T20_46_21_951Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment