xrpl.js icon indicating copy to clipboard operation
xrpl.js copied to clipboard

`npm link xrpl` doesn't work properly

Open mvadari opened this issue 8 months ago • 2 comments

Reproduction:

  • Run npm i -g xrpl
  • Then try running a script with const xrpl = require("xrpl")
  • It fails with a MODULE_NOT_FOUND error
  • Try then running npm link xrpl to link the global module in locally
  • You get the following error:
npm error code 127
npm error path /usr/local/lib/node_modules/xrpl
npm error command failed
npm error command sh -c copyfiles ../../README.md xrpl/README.md
npm error sh: 1: copyfiles: not found

I believe this is because the prepare script is running - that line was added here: https://github.com/XRPLF/xrpl.js/pull/2530

mvadari avatar Jun 07 '24 22:06 mvadari