I am unable to use yarn to install datatables.net-bm. It is complaining of a missing dependency

I am unable to use yarn to install datatables.net-bm. It is complaining of a missing dependency

kkenyonkkenyon Posts: 4Questions: 2Answers: 0

Link to test case:
yarn add @datatables.net/editor-bm --registry https://npm.datatables.net/
Debugger code (debug.datatables.net):
Error messages shown:
error Couldn't find package "datatables.net-bm@1.13 - 2" required by "@datatables.net/editor-bm" on the "npm" registry.
Description of problem:
Just trying to add this to a new project. It looks like something is missing in the repository.

Answers

  • allanallan Posts: 64,357Questions: 1Answers: 10,626 Site admin

    That's odd - it is available here.

    I wonder if the --registry https://npm.datatables.net/ is cascading to all dependencies? I've just tried an npm install @datatables.net/editor-bm and it worked okay.

    Perhaps try yarn add datatables.net-bm and then run your Editor install line?

    Allan

  • kkenyonkkenyon Posts: 4Questions: 2Answers: 0

    Yes that worked. I was just following the installation instructions from https://editor.datatables.net/manual/installing/#NPM-package-manager

    Thanks

  • allanallan Posts: 64,357Questions: 1Answers: 10,626 Site admin

    Good to hear that did the job. The dcs use a configuration file rather than --registry but its a good point, I'll figure out a way to mention than in the docs.

    Allan

Sign In or Register to comment.