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

Yeoman for Mac Broken #1767

Closed
mongoose666 opened this issue Oct 28, 2022 · 3 comments
Closed

Yeoman for Mac Broken #1767

mongoose666 opened this issue Oct 28, 2022 · 3 comments

Comments

@mongoose666
Copy link

When running "yo " you get:

/usr/local/lib/node_modules/yo/node_modules/macos-release/index.js:27
const [name, version] = nameMap.get(release);
^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at macosRelease (/usr/local/lib/node_modules/yo/node_modules/macos-release/index.js:27:26)
at osName (/usr/local/lib/node_modules/yo/node_modules/os-name/index.js:21:18)
at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:37:13)
at Object. (/usr/local/lib/node_modules/yo/lib/cli.js:54:17)
at Module._compile (node:internal/modules/cjs/loader:1149:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
at Module.load (node:internal/modules/cjs/loader:1027:32)
at Module._load (node:internal/modules/cjs/loader:868:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.10.0

@mongoose666
Copy link
Author

mongoose666 commented Oct 28, 2022

This is due to 'Ventura' not being supported yet.

To fix this in the interim the 'namedMap' in '/usr/local/lib/node_modules/yo/node_modules/macos-release/index.js' should be:

const nameMap = new Map([
[22, ['Ventura', '13']],
[21, ['Monterey', '12']],
[20, ['Big Sur', '11']],
[19, ['Catalina', '10.15']],
[18, ['Mojave', '10.14']],
[17, ['High Sierra', '10.13']],
[16, ['Sierra', '10.12']],
[15, ['El Capitan', '10.11']],
[14, ['Yosemite', '10.10']],
[13, ['Mavericks', '10.9']],
[12, ['Mountain Lion', '10.8']],
[11, ['Lion', '10.7']],
[10, ['Snow Leopard', '10.6']],
[9, ['Leopard', '10.5']],
[8, ['Tiger', '10.4']],
[7, ['Panther', '10.3']],
[6, ['Jaguar', '10.2']],
[5, ['Puma', '10.1']]
]);

@AlexSwensen
Copy link

This is a known issue. Here is a link to detailed workaround instructions.
There are also discussions around a proper fix in that same GitHub issue.

@mischah
Copy link
Member

mischah commented Nov 7, 2022

Released a fix with v4.3.1 :octocat:

@mischah mischah closed this as completed Nov 7, 2022
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

3 participants