generator-ccc
generator-ccc copied to clipboard
Generate fails with ERESOLVE Error, but is easily fixed, perhaps add a message to flag next steps
`➜ 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`
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 (
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 ,,,