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
In the Maven log output, after Node and NPM are installed, there is a line like the following:
[INFO] Running 'npm install' in D:\my\project\repo\frontend
The question I'm faced with is, how do I know the npm that's running is the one that the plugin just installed? There is a global installation of npm on the build server, which may not be the desired version. I didn't see any log output that gave the full path of which npm is being called, nor did I see a log that said the new installation was being added to the PATH.
It might make sense to change the log line above to something that gives the full path to npm, if that's in fact what's being done, e.g.:
[INFO] Running 'D\my\project\repo\frontend\node\npm install' in D:\my\project\repo\frontend
But is that what's being done? Is there any possibility that the build might accidentally be using the global npm?
The text was updated successfully, but these errors were encountered:
Yeah it could sometimes happen, if your npm script forks off new processes that have other PATH configurations, working directories and so on. It's somewhat of an edge case. You could make Maven run npm --version I suppose - then at least you know that Maven itself uses the correct one.
In the Maven log output, after Node and NPM are installed, there is a line like the following:
The question I'm faced with is, how do I know the
npm
that's running is the one that the plugin just installed? There is a global installation ofnpm
on the build server, which may not be the desired version. I didn't see any log output that gave the full path of whichnpm
is being called, nor did I see a log that said the new installation was being added to thePATH
.It might make sense to change the log line above to something that gives the full path to npm, if that's in fact what's being done, e.g.:
But is that what's being done? Is there any possibility that the build might accidentally be using the global
npm
?The text was updated successfully, but these errors were encountered: