Comments (6)
Hey, thanks for writing in. Can you run the wizard in debug mode with npx @sentry/wizard --debug -i nextjs
and post the output?
from sentry-wizard.
/app # npx @sentry/wizard --debug -i nextjs
internal/modules/cjs/loader.js:888
throw err;
^
Error: Cannot find module '/root/.npm/_npx/7/lib/node_modules/@sentry/wizard/node_modules/@sentry/cli/scripts/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @sentry/[email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @sentry/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-14T02_36_04_027Z-debug.log
Install for [ '@sentry/wizard@latest' ] failed with code 1
/root/.npm/_logs/2021-09-14T02_36_04_027Z-debug.log
from sentry-wizard.
This might be an issue with stale caches. Please try running npm cache verify
to see if there are any issues.
You can also remove just the wizard: rm -rf ~/.npm/_npx/7/lib/node_modules/@sentry/wizard
.
Do these help?
from sentry-wizard.
/app # npm cache verify
Cache verified and compressed (~/.npm/_cacache):
Content verified: 0 (0 bytes)
Index entries: 0
Finished in 0.013s
/app # tree ~/.npm/
/root/.npm/
└── _cacache
└── _lastverified
/app # npx @sentry/wizard -i nextjs
...
... the error messages..., then
/app # ls -al ~/.npm/_npx/7/lib/node_modules/@sentry
ls: /root/.npm/_npx/7/lib/node_modules/@sentry: No such file or directory
/app # tree -L 2 ~/.npm/
/root/.npm/
├── _cacache
│ ├── _lastverified
│ ├── content-v2
│ ├── index-v5
│ └── tmp
├── _locks
├── _logs
│ └── 2021-09-17T01_13_40_513Z-debug.log
├── _npx
└── anonymous-cli-metrics.json
I don't know if you've noticed, but I am running this in a docker container (node:lts-alpine). Can this be a reason?
FROM node:lts-alpine
ENV LANG C.UTF-8
RUN apk update && apk upgrade
WORKDIR /app
from sentry-wizard.
This issue #888 on sentry-cli seems to have a solution
from sentry-wizard.
Closing the issue, as it seems like the original issue has a working solution. I'd prefer someone to create a new issue with a fresh description if it's still an issue.
Please do not hesitate to ping me if it is still relevant, and I will happily reopen it.
Cheers!
from sentry-wizard.
Related Issues (20)
- Add command line prompt for generating default error pages from wizard HOT 1
- Nextjs pages router wizard fails after latest update
- The official document of Sentry indicates that Vue3 has been supported, but the command indicates that it does not have this platform. Is it supported? HOT 1
- sentry.properties file does not contain all needed fields HOT 6
- [Remix] Create example route to verify setup HOT 2
- Sentry wizard overrides nvm configuration HOT 4
- Deprecated `configureScope` is used in a few templates HOT 1
- Sentry Wizard should not be opinionated HOT 5
- Should give the option to use npm install --force if necessary HOT 3
- Wizard hangs when running `npx @sentry/wizard@latest -i sourcemaps` HOT 1
- Unable to disable ssl verification for self-signed certs HOT 2
- Avoid using deprecated methods HOT 1
- Can't install sentry on nextjs 13.4.19 HOT 3
- Error during setup with wizard on a brand new react-native project HOT 10
- TypeError: Cannot read properties of undefined (reading 'type') HOT 3
- Add `spotlight: true` comment to relevant `Sentry.init` snippets HOT 4
- Update React Native Xcode build phase patch to avoid `react-native-version` crash
- Installation fails because it assumes bun is installed HOT 2
- Should have option to create new project right after login in wizard cli HOT 1
- @sentry/remix not working when installed through Sentry Wizard HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-wizard.