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 not working on Mac #801

Open
hohwille opened this issue Nov 23, 2024 · 0 comments
Open

npm not working on Mac #801

hohwille opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working macOS specific for Apple MacOS npm node package manager

Comments

@hohwille
Copy link
Member

Expected behavior

As a IDEasy user, I want to install and run npm so that I can use the tool.

Actual behavior

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

Error: Cannot find module '/Users/hohwille/projects/IDEasy/software/node/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
Could not determine Node.js install directory
Internal error: Undefined error handling THROW_CLI
Running command '/Users/hohwille/projects/IDEasy/software/npm/bin/npm' using bash with arguments '-v'
failed with exit code 1!
Step 'ide (npm,-v)' failed: com.devonfw.tools.ide.cli.CliProcessException: Running command '/Users/hohwille/projects/IDEasy/software/npm/bin/npm' using bash with arguments '-v'
failed with exit code 1!
1 step(s) failed out of 3 steps.
Running command '/Users/hohwille/projects/IDEasy/software/npm/bin/npm' using bash with arguments '-v'
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 -v

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac
  • 2024.12.001-beta-SNAPSHOT
@hohwille hohwille added bug Something isn't working npm node package manager macOS specific for Apple MacOS labels Nov 23, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Nov 23, 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 macOS specific for Apple MacOS npm node package manager
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant