I’ve fixed this albeit with unorthodox method.
I had to go to where the create-builder.io
package is installed when npm init builder.io@latest
is run. In my case /Users/me.r/.npm/_npx/a412aa29d8155116
here.
There I had to install the missing dependencies manually. There were 2:
- @sentry/node (in the error in my original post)
- @amplitude/analytics-node
The package.json in this directory looked like this:
{
"dependencies": {
"@amplitude/analytics-node": "^1.3.6",
"@sentry/node": "^9.1.0",
"create-builder.io": "^1.0.24"
}
}
Once these were both installed, I re-ran npm init builder.io@latest
in my project and this time it went through fine.
Hoping this helps someone in the future who gets this problem
I would still like to know if this is a but in the package or something wrong with my setup. I’m doubtful because it happened when I tried on a completely different machine.