Upgrade failed - site offline :-(
Technical Support
5
Posts
2
Posters
1
Views
-
wrote last edited by [email protected]
Hi. Trying to upgrade NodeBB to latest version, and get
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/eslint npm ERR! peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/[email protected] npm ERR! node_modules/@eslint-community/eslint-utils npm ERR! @eslint-community/eslint-utils@"^4.2.0" from [email protected] npm ERR! @eslint-community/eslint-utils@"^4.2.0" from [email protected] npm ERR! node_modules/nodebb-plugin-sso-oauth2-multiple/node_modules/eslint npm ERR! eslint@"9.x" from [email protected] npm ERR! node_modules/nodebb-plugin-sso-oauth2-multiple npm ERR! nodebb-plugin-sso-oauth2-multiple@"^1.4.2" from the root project npm ERR! peer eslint@"^7.32.0 || ^8.2.0" from [email protected] npm ERR! node_modules/eslint-config-airbnb-base npm ERR! eslint-config-airbnb-base@"15.0.0" from [email protected] npm ERR! node_modules/eslint-config-nodebb npm ERR! dev eslint-config-nodebb@"1.1.4" from the root project npm ERR! 1 more (nodebb-plugin-gravatar) npm ERR! 4 more (eslint-config-nodebb, eslint-plugin-import, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev @stylistic/eslint-plugin-js@"4.2.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/eslint npm ERR! peer eslint@">=9.0.0" from @stylistic/[email protected] npm ERR! node_modules/@stylistic/eslint-plugin-js npm ERR! dev @stylistic/eslint-plugin-js@"4.2.0" from the root project 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!
Looks like it relates to
nodebb-plugin-sso-oauth2-multiple
Any ideas?
Thanks
-
phenomlab can you delete your package-lock.json and try again?
-
wrote last edited by [email protected]
julian Done, but still fails - this time with a slightly different message
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/eslint npm ERR! peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/[email protected] npm ERR! node_modules/@eslint-community/eslint-utils npm ERR! @eslint-community/eslint-utils@"^4.2.0" from [email protected] npm ERR! @eslint-community/eslint-utils@"^4.2.0" from [email protected] npm ERR! node_modules/nodebb-plugin-sso-oauth2-multiple/node_modules/eslint npm ERR! eslint@"9.x" from [email protected] npm ERR! node_modules/nodebb-plugin-sso-oauth2-multiple npm ERR! nodebb-plugin-sso-oauth2-multiple@"^1.4.2" from the root project npm ERR! peer eslint@"^7.32.0 || ^8.2.0" from [email protected] npm ERR! node_modules/eslint-config-airbnb-base npm ERR! eslint-config-airbnb-base@"15.0.0" from [email protected] npm ERR! node_modules/eslint-config-nodebb npm ERR! dev eslint-config-nodebb@"1.1.4" from the root project npm ERR! 1 more (nodebb-plugin-gravatar) npm ERR! 4 more (eslint-config-nodebb, eslint-plugin-import, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev @stylistic/eslint-plugin-js@"4.2.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/eslint npm ERR! peer eslint@">=9.0.0" from @stylistic/[email protected] npm ERR! node_modules/@stylistic/eslint-plugin-js npm ERR! dev @stylistic/eslint-plugin-js@"4.2.0" from the root project 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!
-
RESOLVED: used
npm update
and then./nodebb build
-
phenomlab ah good to hear, thanks, and sorry about that!
We're not quite sure what happened with the eslint update that caused existing installs to complain so loudly.