eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Get rid of the postinstall script for node-plugin

Open hshar7 opened this issue 2 months ago • 0 comments

Describe the bug

It causes something like this:

.../node_modules/@ai16z/plugin-node postinstall$ npx playwright install-deps && npx playwright install
                                       │ Installing dependencies...
                                                                   │ Switching to root user to install dependencies...
                                                                                                                      │ Reading package lists...
      │ E: Could not get lock /var/lib/apt/lists/lock. It is held by process 27614 (apt-get)
                                                                                            │ E: Unable to lock directory /var/lib/apt/lists/
   │ Failed to install browser dependencies
                                           │ Error: Installation process exited with code: 100
                                                                                              └─ Failed in 1s at /home/zatara7/eliza-starter/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_onnxrunt_josi75rgzinst3siow2n6dgub4/node_modules/@ai16z/plugin-node
                                     ELIFECYCLE  Command failed with exit code 1.

To Reproduce

Install on WSL Ubuntu

Expected behavior

Have the postinstall script not run in this case? And not say that there's a lock problem.. it really threw me off

Screenshots

above cli output will suffice

Additional context

Just get rid of the post install script by going to it in the node_modules and replacing it or getting rid of it completely.

You can just install that playwright stuff yourself or in a different way if one of the developers can fix it

hshar7 avatar Dec 12 '24 14:12 hshar7