Skip to content

npm install fails (macOS apple silicon, latest v26) #699

@nullfx

Description

@nullfx

appears you may need to add a process.arch: in there for x64 and arm64 on the latest macOSs

steve@Steves-MacBook-Pro:~$ npm install -g @tobilu/qmd
npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
npm error code 1
npm error path /usr/local/lib/node_modules/@tobilu/qmd/node_modules/node-llama-cpp
npm error command failed
npm error command sh -c node ./dist/cli/cli.js postinstall
npm error [node-llama-cpp] llama.cpp is not supported under Rosetta on Apple Silicone Macs. Ensure that you're using a native arm64 node.js installation.
npm error [node-llama-cpp] process.platform: darwin, process.arch: x64
npm error [node-llama-cpp] troubleshooting: https://node-llama-cpp.withcat.ai/guide/troubleshooting#illegal-hardware-instruction
npm error A complete log of this run can be found in: /Users/steve/.npm/_logs/2026-06-02T01_02_44_581Z-debug-0.log
steve@Steves-MacBook-Pro:~$ cd tmp/qmd
steve@Steves-MacBook-Pro:~/tmp/qmd$ npm install
npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
npm error code 1
npm error path /Users/steve/tmp/qmd/node_modules/node-llama-cpp
npm error command failed
npm error command sh -c node ./dist/cli/cli.js postinstall
npm error [node-llama-cpp] llama.cpp is not supported under Rosetta on Apple Silicone Macs. Ensure that you're using a native arm64 node.js installation.
npm error [node-llama-cpp] process.platform: darwin, process.arch: x64
npm error [node-llama-cpp] troubleshooting: https://node-llama-cpp.withcat.ai/guide/troubleshooting#illegal-hardware-instruction
npm error A complete log of this run can be found in: /Users/steve/.npm/_logs/2026-06-02T01_03_06_928Z-debug-0.log
steve@Steves-MacBook-Pro:~/tmp/qmd$ sw_vers
ProductName:		macOS
ProductVersion:		26.6
BuildVersion:		25G5028f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions