-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Crash when space in yeoman generator path #366
Comments
In addition, I tested a global install, and ran into the same issue running it on Windows. In this case, it seems it will likely occur for any Windows user installing globally (at least that has npm installed in the standard C. A. M. Gerlach@QUASIMODO MINGW64 ~/Documents/dev/SpaceX/submanager (update-cis-post-060)
$ mega-linter-runner --install
C:\Program Files\nodejs\node_modules\mega-linter-runner\node_modules\yeoman-environment\lib\environment.js:630
new Error(
^
Error: You don't seem to have a generator with the name “C:\Program” installed.
But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-C:\Program.
To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
at Environment.create (C:\Program Files\nodejs\node_modules\mega-linter-runner\node_modules\yeoman-environment\lib\environment.js:630:9)
at instantiateAndRun (C:\Program Files\nodejs\node_modules\mega-linter-runner\node_modules\yeoman-environment\lib\environment.js:729:30)
at Environment.run (C:\Program Files\nodejs\node_modules\mega-linter-runner\node_modules\yeoman-environment\lib\environment.js:758:12)
at MegaLinterRunner.run (C:\Program Files\nodejs\node_modules\mega-linter-runner\lib\runner.js:43:11)
at MegaLinterRunnerCli.run (C:\Program Files\nodejs\node_modules\mega-linter-runner\lib\cli.js:11:34)
at C:\Program Files\nodejs\node_modules\mega-linter-runner\lib\index.js:13:37
at Object.<anonymous> (C:\Program Files\nodejs\node_modules\mega-linter-runner\lib\index.js:14:5)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32) |
This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed |
As far as I am aware, this is still a critical bug. |
This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed |
Not stale ? :) |
Need to add space support to environment/test/environment.js Line 743 in 8e83811
|
Spaces are not the problem, but package name that doesn't start with |
The generator integration is not the main use of mega-linter-runner, so it can not contain generator- in its name :/ |
The PR should fix the problem when the package is inside a node_modules repository, but it won't help if not. |
Hey, sorry I didn't see this in time to test it, and thanks so much for the fix.
This should fix the issue I reported, since in both cases the package was inside |
A mega-linter user detected a crash in the generator because there is a space in its windows username
Please could you check ?
Thanks :)
oxsecurity/megalinter#676
The text was updated successfully, but these errors were encountered: