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.
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.