#Cannot find module '@mariozechner/clipboard-darwin-arm64'

1 messages ยท Page 1 of 1 (latest)

candid terraceBOT
#

This error indicates a missing native dependency for the clipboard module on macOS ARM64. Here are some troubleshooting steps:

Quick fixes to try:

  1. Reinstall dependencies:

    npm uninstall @mariozechner/clipboard-darwin-arm64
    npm install
    
  2. Clear npm cache and reinstall:

    npm cache clean --force
    rm -rf node_modules package-lock.json
    npm install
    
#
  1. If using global install:
    npm uninstall -g openclaw
    npm install -g openclaw
    

Check if the package exists in node_modules:

ls -la node_modules/@mariozechner/

The @mariozechner/clipboard-darwin-arm64 package is a native module that requires compilation. If the above doesn't work, you may need:

  • Xcode command line tools installed (xcode-select --install)
  • Python installed (for node-gyp)

Let me know what you find after trying these steps! ๐Ÿฆ

quasi swan
#

what dir to run 1-3 in ?

candid terraceBOT
# quasi swan what dir to run 1-3 in ?

It depends on how you installed it:

If installed globally (most likely based on your error):

# Check global install location
npm root -g
# Then run the commands in that directory

Simpler approach - just reinstall globally:

npm uninstall -g openclaw && npm install -g openclaw

If you're using it as a local dependency in a project:
Run the commands in your project root (where package.json lives).

#

Which one applies? If you just ran npm install -g openclaw, use the global approach. If you added it to a project's package.json, use the project directory.

quasi swan
#

its npm global, uninstalled, reinstallgin.... zzzzz