You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the commandlets that call npm and have redundant logic to detect it that also seems to be buggy.
The commandlets based on npm are:
ionic
ng
yarn
Instead of finding npm inside these commandlets to call doRunCommand "npm install ..." we should simply delegate to doDevonCommand npm install ....
Copied from PR #934:
During the setup of npm a 'MODULE_NOT_FOUND' blocks the installation of ionic.
To be more precise, I've been getting the following error after the installation of node seemed
to be complete:
Error: Cannot find module '/home/dr/projects/PR934/software/node/bin/node_modules/npm/bin/npm-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v19.0.0
Could not determine Node.js install directory
******** ATTENTION ********
Failed to install ionic-cli ('/home/dr/projects/PR934/software/node/npm')
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.
Exit code was 1
`
The text was updated successfully, but these errors were encountered:
hohwille
added
bug
Something isn't working
setup
related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)
npm
node package manager
labels
Nov 3, 2022
We have the commandlets that call
npm
and have redundant logic to detect it that also seems to be buggy.The commandlets based on
npm
are:ionic
ng
yarn
Instead of finding
npm
inside these commandlets to calldoRunCommand "npm install ..."
we should simply delegate todoDevonCommand npm install ...
.Copied from PR #934:
During the setup of npm a 'MODULE_NOT_FOUND' blocks the installation of ionic.
To be more precise, I've been getting the following error after the installation of node seemed
to be complete:
`node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module '/home/dr/projects/PR934/software/node/bin/node_modules/npm/bin/npm-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v19.0.0
Could not determine Node.js install directory
******** ATTENTION ********
Failed to install ionic-cli ('/home/dr/projects/PR934/software/node/npm')
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.
Exit code was 1
`
Full log of this error can be found here: https://github.com/alfeilex/ide/actions/runs/3368418467/jobs/5586938443#step:4:11593
In my case the npm-cli.js file has the following path
instead of
It seems that the errors occurs because the npm_command uses the path from here:
ide/scripts/src/main/resources/scripts/command/ionic
Line 28 in d9ebcad
but it must be the path from here:
ide/scripts/src/main/resources/scripts/command/ionic
Line 31 in d9ebcad
The text was updated successfully, but these errors were encountered: