mediacurrent / theme_generator_8

Yeoman generator for Drupal Themes - lets you quickly set up a Drupal 8 theme with sensible defaults and best practices.
MIT License
100 stars 25 forks source link

unable to run npm create yo mc-d8-theme #134

Closed wunaidage closed 1 year ago

wunaidage commented 2 years ago

running with node 16 and npm 8 on windows 11 powershell. error message is

PS C:\Bitnami\drupal-9.3.9-0\apps\drupal\htdocs\themes\custom\test> npm create yo mc-d8-theme
ENOENT: no such file or directory, stat 'C:\Users\wunai\AppData\Roaming\npm\npm'
√ create-yo ok!
npm ERR! code 1
npm ERR! path C:\Bitnami\drupal-9.3.9-0\apps\drupal\htdocs\themes\custom\test
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-yo "mc-d8-theme"

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\wunai\AppData\Local\npm-cache\_logs\2022-04-08T18_51_20_599Z-debug.log

the complete log

0 verbose cli [
0 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'create',
0 verbose cli   'yo',
0 verbose cli   'mc-d8-theme'
0 verbose cli ]
1 info using npm@8.0.0
2 info using node@v16.11.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Bitnami\drupal-9.3.9-0\apps\drupal\htdocs\themes\custom\test\.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:C:\Users\wunai\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\wunai\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 1ms
22 timing config:load:flatten Completed in 1ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 13ms
27 http fetch GET 200 https://registry.npmjs.org/create-yo 447ms (cache revalidated)
28 timing arborist:ctor Completed in 0ms
29 timing arborist:ctor Completed in 0ms
30 timing arborist:ctor Completed in 0ms
31 timing command:init Completed in 614ms
32 verbose stack Error: command failed
32 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
32 verbose stack     at ChildProcess.emit (node:events:390:28)
32 verbose stack     at maybeClose (node:internal/child_process:1064:16)
32 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
33 verbose cwd C:\Bitnami\drupal-9.3.9-0\apps\drupal\htdocs\themes\custom\test
34 verbose Windows_NT 10.0.22000
35 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "create" "yo" "mc-d8-theme"
36 verbose node v16.11.0
37 verbose npm  v8.0.0
38 error code 1
39 error path C:\Bitnami\drupal-9.3.9-0\apps\drupal\htdocs\themes\custom\test
40 error command failed
41 error command C:\WINDOWS\system32\cmd.exe /d /s /c create-yo "mc-d8-theme"
42 verbose exit 1

I installed WSL Ubuntu and it does not work there as well. same old error