Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm cannot find module #860

Open
WorkingAmeise opened this issue Dec 6, 2024 · 0 comments
Open

npm cannot find module #860

WorkingAmeise opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working npm node package manager

Comments

@WorkingAmeise
Copy link
Contributor

Expected behavior

As a npm-User, I want to use the software

Actual behavior

$ ide npm help
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module 'C:\Projects\testing0612\software\npm\bin\node_modules\npm\bin\npm-prefix.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.20.5
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module 'C:\Projects\testing0612\software\npm\bin\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.20.5
Internal error: Undefined error handling THROW_CLI
Running command 'C:\Projects\testing0612\software\npm\bin\npm.cmd' with arguments 'help'
failed with exit code 1!
Step 'ide (npm,help)' failed: com.devonfw.tools.ide.cli.CliProcessException: Running command 'C:\Projects\testing0612\software\npm\bin\npm.cmd' with arguments 'help'
failed with exit code 1!
1 step(s) failed out of 3 steps.
Running command 'C:\Projects\testing0612\software\npm\bin\npm.cmd' with arguments 'help'
failed with exit code 1!

Error: IDEasy failed with exit code 1

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. ide npm help

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Windows
  • Browser: /
@WorkingAmeise WorkingAmeise added bug Something isn't working npm node package manager labels Dec 6, 2024
@WorkingAmeise WorkingAmeise moved this to 🆕 New in IDEasy board Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm node package manager
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant