-
Notifications
You must be signed in to change notification settings - Fork 14
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
Global NodeJs and TeamCity #8
Comments
It appears that restarting the Build Agents worked and now Node is running from the global install. I'm adding some more info for anyone else who tries this:
Plus you have to update the PREFIX in the %NODJS%/node_modules/npm/npmrc file And, even with all of that done it didn't get anything to run any faster. So, it seems the best recourse is just to use the Local settings and to use nuget to get node,npm, etc.. |
I don't have any experience with TeamCity but it looks like your npm-cache looks like the way to go in your case but it is currently not supported. You'd have to change the I'll add support for |
Thanks. I'm working on the npm cache solution presently. I think I need to
|
I figure I am just doing something wrong but.. maybe not.
I have an windows 2012 server VM running in Azure cloud with TeamCity. When TeamCity runs the build the MsBuild.NodeTools works fine if I provide the local info for Node.
However, it is really slow becuase of the downloading of various node modules on each build.
So I installed Node globally on the VM at c:\nodejs then added a system environment variable of NODJS which points to c:\nodejs AND it is on the system PATH variable.
Yet I get the error: Global NodeJS installation not found. Please set the 'NODEJS' environment variable for a global installation or set the 'LocalNodePath' property in your project file for a local installation.
I am hoping that with the global node install that it will cache the modules locally so when each build needs them it will just be copying them on the filesystem and not have to re-download them each time (which takes roughly 3.5 minutes).
On my personal machine the build works fine without specifying a local node path and without having a SYSTEM environment variable of NODEJS.
Any help would be appreciated.
EDIT: I've restarted the TeamCity service (just to be on the safe side) but that didn't seem to help.
The text was updated successfully, but these errors were encountered: