Npx datocms is broken

Hi folks,

I’m trying to use the content management SDK to migrate from another CMS to Dato, but I ran into an issue when generating typescript schemas.

The command below doesn’t work because the target npm package returns a 404:

$ npx datocms schema:generate schema.ts
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/datocms - Not found
npm error 404
npm error 404  'datocms@*' is not in this registry.

or even:

$ npx datocms
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/datocms - Not found
npm error 404
npm error 404  'datocms@*' is not in this registry.

This command comes from the docs here. It looks like the package was de-listed from the registry, maybe?


One more thing: please remove the “$” character at the beginning of the shell script examples, because when I click the “Copy to clipboard” button, that character is included and I have to manually remove it before calling it in my terminal. Or omit it in the onClick event. Thank you!

Nevermind, I realized the @datocms/cli package must be installed first :person_facepalming: I’m used to npx commands not requiring dependencies like this, but your documentation mentions that step. Sorry for the post!

2 Likes