Open philalonso opened 4 months ago
After a fresh install of docker, ddev, and the recommended version of D10 on a different machine, the theme generator failed with the same error:
phil@Gillians-MBP phils-theme % nvm install 16 && node -v > .nvmrc Downloading and installing node v16.20.2... Downloading https://nodejs.org/dist/v16.20.2/node-v16.20.2-darwin-x64.tar.xz... ######################################################################### 100.0% Computing checksum with shasum -a 256 Checksums matched! Now using node v16.20.2 (npm v8.19.4) Creating default alias: default -> 16 (-> v16.20.2) phil@Gillians-MBP phils-theme % npm install -g libnpx
added 125 packages, and audited 126 packages in 19s
5 packages are looking for funding
run npm fund
for details
4 moderate severity vulnerabilities
To address all issues (including breaking changes), run: npm audit fix --force
Run npm audit
for details.
npm notice
npm notice New major version of npm available! 8.19.4 -> 10.4.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.4.0
npm notice Run npm install -g npm@10.4.0 to update!
npm notice
phil@Gillians-MBP phils-theme % npm create yo mc-d10-theme
Need to install the following packages:
create-yo@2.0.0
Ok to proceed? (y) y
. ..... .....
.,::loodxOO0o. ,lx0KKKK0Okd:. .:ok0KKKK0ko'
.ldOXMMMMMMMx..:ONMWNNWMMMMMMWO' .oKWWNNWMMMMMMXl
,OMMMMMMx,xNKo:'''c0MMMMMMMx.;0W0o;'',oXMMMMMX;
:NMMMMMXKXo. ;XMMMMMMXOXKc. lWMMMMWo
;XMMMMMMX: .kMMMMMMMMK; ;XMMMMMx.
;KMMMMMWo cOkkkkOOk; ,KMMMMMx.
;KMWXKOo. .dOKNWMx.
.::,......',;::clloooooooooollc::,'.. ..,:,
.';cldxO0KXNNNNNNNNNWMMMMMMMWWWMMMWNXKOkdoc;'..
.,:looddONMMMMMKl;;,'''...'kMMMMMMWd,,;:cldxO0XWMMMNX0kdlc;'.
..',;:::,'.. ;XMMMMMk. oMMMMMMNc .cXMMMMMNXNWMWNKOxdl:' ... ;XMMMMMk. oMMMMMMN: ,KMMMMMO,.,:loxO0KKO: ;XMMMMMk. dMMMMMMNc ,KMMMMMk. ... cNMMMMM0' .xMMMMMMWl :NMMMMMK, .:0MMMMMMWx'. .oXMMMMMMMK:. .;OWMMMMMWk,. .cox0KKKKKKKKKOdl. .:dk0KKKKKKKKK0xo; 'odOKKKKKKKKKOdo:. ................ ................ ............... Welcome to the Mediacurrent D10 theme generator!
? What is your theme's human readable name? Phils Theme ? What is your theme's machine name? EX: unicorn_theme phils_theme ? What is your theme's description? Test for the theme_generator_10 from Mediacurrent ? Should we update the .gitignore to ignore compiled files? (i.e. /dist) Yes Error mc-d10-theme
instantiatedGenerator.run is not a function ✔ create-yo ok! npm ERR! code 1 npm ERR! path /Users/phil/ddev/d10-test/web/themes/custom/phils-theme npm ERR! command failed npm ERR! command sh -c -- create-yo mc-d10-theme
npm ERR! A complete log of this run can be found in: npm ERR! /Users/phil/.npm/_logs/2024-02-26T22_37_42_478Z-debug-0.log phil@Gillians-MBP phils-theme %
Should I try this with New major version of npm available! 8.19.4 -> 10.4.0 ?
Same issue with node v20 with node v16 no difference Any update on this?
? What is your theme's human readable name? My Awesome Theme ? What is your theme's machine name? EX: unicorn_theme my_awesome_theme ? What is your theme's description? Test theme for advanced components in Drupal 10 ? Should we update the .gitignore to ignore compiled files? (i.e. /dist) Yes Error mc-d10-theme
instantiatedGenerator.run is not a function ✔ create-yo ok! npm ERR! code 1 npm ERR! path /Users/philipalonso/ddev/mh-advComp/web/themes/custom/my_awesome_theme npm ERR! command failed npm ERR! command sh -c -- create-yo mc-d10-theme
npm ERR! A complete log of this run can be found in: npm ERR! /Users/philipalonso/.npm/_logs/2024-02-26T17_03_01_610Z-debug-0.log
Here's the log file: 0 verbose cli /Users/philipalonso/.nvm/versions/node/v16.20.2/bin/node /Users/philipalonso/.nvm/versions/node/v16.20.2/bin/npm 1 info using npm@8.19.4 2 info using node@v16.20.2 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 6ms 5 timing config:load:file:/Users/philipalonso/.nvm/versions/node/v16.20.2/lib/node_modules/npm/npmrc Completed in 1ms 6 timing config:load:builtin Completed in 1ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 1ms 9 timing config:load:project Completed in 4ms 10 timing config:load:file:/Users/philipalonso/.npmrc Completed in 1ms 11 timing config:load:user Completed in 1ms 12 timing config:load:file:/Users/philipalonso/.nvm/versions/node/v16.20.2/etc/npmrc Completed in 0ms 13 timing config:load:global Completed in 0ms 14 timing config:load:validate Completed in 0ms 15 timing config:load:credentials Completed in 1ms 16 timing config:load:setEnvs Completed in 1ms 17 timing config:load Completed in 18ms 18 timing npm:load:configload Completed in 18ms 19 timing npm:load:mkdirpcache Completed in 1ms 20 timing npm:load:mkdirplogs Completed in 0ms 21 verbose title npm create yo mc-d10-theme 22 verbose argv "create" "yo" "mc-d10-theme" 23 timing npm:load:setTitle Completed in 26ms 24 timing config:load:flatten Completed in 3ms 25 timing npm:load:display Completed in 5ms 26 verbose logfile logs-max:10 dir:/Users/philipalonso/.npm/_logs 27 verbose logfile /Users/philipalonso/.npm/_logs/2024-02-26T17_03_01_610Z-debug-0.log "~/.npm/_logs/2024-02-26T17_03_01_610Z-debug-0.log" 57L, 3041B