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

Generate fails with ERESOLVE Error, but is easily fixed, perhaps add a message to flag next steps #66

Open
ralphcallaway opened this issue Jul 16, 2022 · 2 comments

Comments

@ralphcallaway
Copy link
Collaborator

`➜ ccc-sfdc git:(upgrades) ✗ yo ccc

 _-----_     
|       |    ╭──────────────────────────╮
|--(o)--|    │    Callaway Cloud SFDX   │

---------´ │ Project │ ( _´U_ ) ╰──────────────────────────╯
/A\ /
| ~ |
'..'_
´ |° ´ Y

conflict package.json
? Overwrite package.json? overwrite
force package.json
conflict manifest/package.xml
? Overwrite manifest/package.xml? overwrite
force manifest/package.xml
identical .vscode/launch.json
conflict .vscode/settings.json
? Overwrite .vscode/settings.json? overwrite
force .vscode/settings.json
conflict bitbucket-pipelines.yml
? Overwrite bitbucket-pipelines.yml? overwrite
force bitbucket-pipelines.yml
create build/format-commit.sh
create build/known-metadata-issues.md
identical build/merge.sh
identical build/package.sh
conflict build/pipelines-setup.md
? Overwrite build/pipelines-setup.md? overwrite
force build/pipelines-setup.md
identical build/schedule.sh
identical build/setup.sh
identical build/sync.sh
Installing sfdx force-source-clean
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y
Finished digital signature check.
warning ../../../package.json: No license field
Installing plugin force-source-clean... installed v0.1.0
Installing sfdx sfdx-git-packager
This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y
Finished digital signature check.
warning ../../../package.json: No license field
Installing plugin sfdx-git-packager... installed v0.3.3

I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.

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/prettier
npm ERR! dev prettier@"^2.x" from the root project
npm ERR! peer prettier@">=2.0.0" from [email protected]
npm ERR! node_modules/pretty-quick
npm ERR! dev pretty-quick@"^3.x" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@"^1.17.0" from [email protected]
npm ERR! node_modules/prettier-plugin-apex
npm ERR! dev prettier-plugin-apex@"^1.x" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/prettier
npm ERR! peer prettier@"^1.17.0" from [email protected]
npm ERR! node_modules/prettier-plugin-apex
npm ERR! dev prettier-plugin-apex@"^1.x" 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!
npm ERR! See /Users/ralphcallaway/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ralphcallaway/.npm/_logs/2022-07-16T12_05_49_694Z-debug.log`

@ralphcallaway
Copy link
Collaborator Author

0 verbose cli [
0 verbose cli '/Users/ralphcallaway/.nvm/versions/node/v14.17.0/bin/node',
0 verbose cli '/Users/ralphcallaway/.nvm/versions/node/v14.17.0/bin/npm',
0 verbose cli 'install',
0 verbose cli '--cache-min',
0 verbose cli '86400'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 verbose config cache-min This option has been deprecated in favor of --prefer-offline.
8 timing config:load:cli Completed in 2ms
9 timing config:load:env Completed in 0ms
10 timing config:load:file:/Users/ralphcallaway/Development/ccc-sfdc/.npmrc Completed in 0ms
11 timing config:load:project Completed in 1ms
12 timing config:load:file:/Users/ralphcallaway/.npmrc Completed in 0ms
13 timing config:load:user Completed in 0ms
14 timing config:load:file:/Users/ralphcallaway/.nvm/versions/node/v14.17.0/etc/npmrc Completed in 0ms
15 timing config:load:global Completed in 0ms
16 timing config:load:validate Completed in 0ms
17 timing config:load:credentials Completed in 1ms
18 timing config:load:setEnvs Completed in 0ms
19 timing config:load Completed in 8ms
20 timing npm:load:configload Completed in 8ms
21 timing npm:load:setTitle Completed in 11ms
22 timing npm:load:setupLog Completed in 1ms
23 timing config:load:flatten Completed in 1ms
24 timing npm:load:cleanupLog Completed in 2ms
25 timing npm:load:configScope Completed in 0ms
26 timing npm:load:projectScope Completed in 0ms
27 timing npm:load Completed in 24ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 395ms
30 timing idealTree:userRequests Completed in 0ms
31 silly idealTree buildDeps
32 silly fetch manifest husky@^7.x
33 timing arborist:ctor Completed in 0ms
34 http fetch GET 200 https://registry.npmjs.org/husky 300ms (cache hit)
35 silly fetch manifest prettier@^2.x
36 http fetch GET 200 https://registry.npmjs.org/prettier 6ms (cache hit)
37 silly fetch manifest pretty-quick@^3.x
38 http fetch GET 200 https://registry.npmjs.org/pretty-quick 7ms (cache stale)
39 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^7.x
40 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^2.x
41 silly placeDep ROOT [email protected] REPLACE for: [email protected] want: ^3.x
42 silly fetch manifest chalk@^3.0.0
43 silly fetch manifest execa@^4.0.0
44 silly fetch manifest mri@^1.1.5
45 http fetch GET 200 https://registry.npmjs.org/mri 8ms (cache stale)
46 http fetch GET 200 https://registry.npmjs.org/execa 9ms (cache stale)
47 http fetch GET 200 https://registry.npmjs.org/chalk 12ms (cache stale)
48 timing idealTree:#root Completed in 354ms
49 timing idealTree:node_modules/husky Completed in 0ms
50 timing idealTree:node_modules/prettier Completed in 0ms
51 silly fetch manifest prettier@^1.17.0
52 timing idealTree Completed in 753ms
53 timing command:install Completed in 772ms
54 verbose stack Error: could not resolve
54 verbose stack at PlaceDep.failPeerConflict (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:455:25)
54 verbose stack at PlaceDep.place (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:186:21)
54 verbose stack at new PlaceDep (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:67:10)
54 verbose stack at /Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:880:31
54 verbose stack at Array.map ()
54 verbose stack at Arborist.[buildDepStep] (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:880:8)
54 verbose stack at async Arborist.buildIdealTree (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:203:7)
54 verbose stack at async Promise.all (index 1)
54 verbose stack at async Arborist.reify (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:141:5)
54 verbose stack at async Install.install (/Users/ralphcallaway/.nvm/versions/node/v14.17.0/lib/node_modules/npm/lib/install.js:150:5)
55 verbose cwd /Users/ralphcallaway/Development/ccc-sfdc
56 verbose Darwin 20.6.0
57 verbose argv "/Users/ralphcallaway/.nvm/versions/node/v14.17.0/bin/node" "/Users/ralphcallaway/.nvm/versions/node/v14.17.0/bin/npm" "install" "--cache-min" "86400"
58 verbose node v14.17.0
59 verbose npm v7.20.5
60 error code ERESOLVE
61 error ERESOLVE could not resolve
62 error
63 error While resolving: �[1mprettier-plugin-apex�[22m@�[1m1.0.0�[22m
63 error Found: �[1mprettier�[22m@�[1m2.7.1�[22m�[2m�[22m
63 error �[2mnode_modules/prettier�[22m
63 error �[33mdev�[39m �[1mprettier�[22m@"�[1m^2.x�[22m" from the root project
63 error �[35mpeer�[39m �[1mprettier�[22m@"�[1m>=2.0.0�[22m" from �[1mpretty-quick�[22m@�[1m3.1.3�[22m�[2m�[22m
63 error �[2mnode_modules/pretty-quick�[22m
63 error �[33mdev�[39m �[1mpretty-quick�[22m@"�[1m^3.x�[22m" from the root project
63 error
63 error Could not resolve dependency:
63 error �[35mpeer�[39m �[1mprettier�[22m@"�[1m^1.17.0�[22m" from �[1mprettier-plugin-apex�[22m@�[1m1.0.0�[22m�[2m�[22m
63 error �[2mnode_modules/prettier-plugin-apex�[22m
63 error �[33mdev�[39m �[1mprettier-plugin-apex�[22m@"�[1m^1.x�[22m" from the root project
63 error
63 error Conflicting peer dependency: �[1mprettier�[22m@�[1m1.19.1�[22m�[2m�[22m
63 error �[2mnode_modules/prettier�[22m
63 error �[35mpeer�[39m �[1mprettier�[22m@"�[1m^1.17.0�[22m" from �[1mprettier-plugin-apex�[22m@�[1m1.0.0�[22m�[2m�[22m
63 error �[2mnode_modules/prettier-plugin-apex�[22m
63 error �[33mdev�[39m �[1mprettier-plugin-apex�[22m@"�[1m^1.x�[22m" from the root project
63 error
63 error Fix the upstream dependency conflict, or retry
63 error this command with --force, or --legacy-peer-deps
63 error to accept an incorrect (and potentially broken) dependency resolution.
63 error
63 error See /Users/ralphcallaway/.npm/eresolve-report.txt for a full report.
64 verbose exit 1

@ralphcallaway
Copy link
Collaborator Author

was able to resolve by doing the following
rm -rf node_modules && rm package-lock.json && npm i

perhaps there is a way to detect this and let the user to know to get that a try ,,,

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

1 participant