Riot can't be installed with pnpm instead of npm. pnpm is the default package manager in Glitch. This is the error we get:
ERROR  ENOENT: no such file or directory, lstat '/rbd/pnpm-volume/037c7ef6-118f-43ca-a11f-b1473a1167d2/node_modules/.registry.npmjs.org/riot/3.10.3/node_modules/riot/node_modules/riot-cli'
This is due to the fact that riot has a bin entry in package.json which assumes the directory layout of node_modules is the one generated by npm:
"bin": {
"riot": "node_modules/riot-cli/lib/index.js"
}
Removing this entry should fix the issue, since the binary in riot-cli will still be installed.
Can you reproduce the issue?
pnpm: npm install -g pnpmriot with pnpm: mkdir -p ~/riot-pnpm && cd ~/riot-pnpm && pnpm install riotExpected: riot installs without issues
Actual: riot fails to install
How would you tag this issue?
I think to fix this, you can just create a dedicated bin file inside riot with this content:
#!/usr/bin/env node
require('riot-cli')
The new [email protected] adds the support for pnpm. Thanks for raising up this issue
Thank you!!!
Most helpful comment
The new [email protected] adds the support for
pnpm. Thanks for raising up this issue