Code Monkey home page Code Monkey logo

Comments (6)

AbhiPrasad avatar AbhiPrasad commented on June 6, 2024

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.

github0013 avatar github0013 commented on June 6, 2024
/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.

AbhiPrasad avatar AbhiPrasad commented on June 6, 2024

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.

github0013 avatar github0013 commented on June 6, 2024
/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.

meska avatar meska commented on June 6, 2024

This issue #888 on sentry-cli seems to have a solution

from sentry-wizard.

kamilogorek avatar kamilogorek commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.