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

yuidoc won't run on Mac with Apple Silicon #455

Open
brettonw opened this issue Nov 28, 2022 · 1 comment
Open

yuidoc won't run on Mac with Apple Silicon #455

brettonw opened this issue Nov 28, 2022 · 1 comment

Comments

@brettonw
Copy link

Homebrew on Ventura on Apple M1 silicon installs node modules in

/opt/homebrew/lib/node_modules/

instead of in

/usr/local/lib/node_modules/

Yuidoc is just not finding things correctly. I can't tell if its a homebrew problem, an npm problem, or a yuidoc problem. But the path to the theme is obviously incorrect in the error message:

 [exec] error: Error: Cannot find module '/Users/(my project path)/opt/homebrew/lib/node_modules/yuidoc-lucid-theme/helpers/helpers.js'
 [exec] Require stack:
 [exec] - /opt/homebrew/lib/node_modules/yuidocjs/lib/builder.js
 [exec] - /opt/homebrew/lib/node_modules/yuidocjs/node_modules/yui/yui-nodejs/yui-nodejs.js
 [exec] - /opt/homebrew/lib/node_modules/yuidocjs/node_modules/yui/index.js
 [exec] - /opt/homebrew/lib/node_modules/yuidocjs/lib/index.js
 [exec] - /opt/homebrew/lib/node_modules/yuidocjs/lib/cli.js
 [exec]     at Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
 [exec]     at Module._load (node:internal/modules/cjs/loader:872:27)
 [exec]     at Module.require (node:internal/modules/cjs/loader:1092:19)
 [exec]     at require (node:internal/modules/cjs/helpers:103:18)
 [exec]     at /opt/homebrew/lib/node_modules/yuidocjs/lib/builder.js:137:25
 [exec]     at Array.forEach (<anonymous>)
 [exec]     at Y.DocBuilder._addHelpers (/opt/homebrew/lib/node_modules/yuidocjs/lib/builder.js:133:21)
 [exec]     at new Y.DocBuilder (/opt/homebrew/lib/node_modules/yuidocjs/lib/builder.js:58:18)
 [exec]     at Object.<anonymous> (/opt/homebrew/lib/node_modules/yuidocjs/lib/cli.js:43:23)
 [exec]     at Module._compile (node:internal/modules/cjs/loader:1205:14)
 [exec] error: --------------------------------------------------------------------------
 [exec] error: Node.js version: v19.1.0
 [exec] error: YUI version: 3.18.1
 [exec] error: YUIDoc version: 0.10.2
 [exec] error: Please file all tickets here: http://github.com/yui/yuidoc/issues
 [exec] error: --------------------------------------------------------------------------
 [exec] Result: 1
@quinton-ashley
Copy link

It runs on my M1 macbook, try installing it with npm

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

2 participants