"Remix on Glitch" button -> pnpm missing files

I developed a glitch app for making “Dat” websites, which you can try out here:

https://codemirror-multicore.glitch.me/

I published the source code on GitHub:

When I click on it to create a fork of the site on Glitch, I see:

node v9.6.1, with pnpm

Installing…

A store server is running. All store manipulations are delegated to it.

Eventually, the site starts up… but when I click on it, I get:

Cannot find module ‘…/…/…/rbd/pnpm-volume/b2ab7ee0-7116-4492-a1a5-338ce982b35f/node_modules/.registry.npmjs.org/is-buffer/1.1.6/node_modules/is-buffer/index.js’
/rbd/pnpm-volume/b2ab7ee0-7116-4492-a1a5-338ce982b35f/node_modules/.registry.npmjs.org/pretty-hash/1.0.1/node_modules/pretty-hash

You can see it here:

https://caring-railway.glitch.me/

When I open the console, I can see that node_modules is a symlink in the remixed version:

node_modules -> /rbd/pnpm-volume/welcome/node_modules

I can fix the problem by removing the symlink, then doing ‘npm install’ manually, but I don’t think other people will know to do that.

It appears to me that the pnpm cache is missing files.

Hi @jimpick,

it looks like some of the npm packages you’re using are incompatible with pnpm. It is enough that in codemirror-multicore you go in the console and run enable-npm. It will use npm instead of pnpm to handle your packages, and this setting will be inherited by the remixes.

Let us know if you’ve issues :slight_smile:

1 Like

Thanks!

Is pnpm documented anywhere?

pnpm is a public package manager for node, you can find it here https://github.com/pnpm/pnpm

1 Like