Remotebuild 

remotebuild

Problem:

When installing remote build for Mac to enable Visual Studio Tools for Apache Cordova remote builds, you receive errors as shown in the text below:

MACSERVER01:~ acumenconsulting$ remotebuild test

Remote build server listening on [https] port 3000

Please view/edit server configuration at /Users/acumenconsulting/.taco_home/RemoteBuild.config. You many need to run ‘remotebuild saveconfig’ to generate it. You will have to restart the server if you update the server configurations.

Downloading: cordova@4.3.0

npm WARN engine npm@1.3.4: wanted: {“node”:”>=0.6″,”npm”:”1″} (current: {“node”:”5.1.0″,”npm”:”3.3.12″})

npm WARN install:rimraf@2.2.0 ENOENT: no such file or directory, chmod ‘/Users/acumenconsulting/.taco_home/node_modules/cordova/4.3.0/node_modules/npm/node_modules/rimraf/bin.js’

/Users/acumenconsulting/.taco_home/node_modules/cordova/4.3.0

└── (empty)

npm WARN ENOENT ENOENT: no such file or directory, open ‘/Users/acumenconsulting/.taco_home/node_modules/cordova/4.3.0/package.json’

npm WARN EPACKAGEJSON 4.3.0 No description

npm WARN EPACKAGEJSON 4.3.0 No repository field.

npm WARN EPACKAGEJSON 4.3.0 No README data

npm WARN EPACKAGEJSON 4.3.0 No license field.

npm WARN EBUNDLEOVERRIDE Replacing bundled npm > cmd-shim with new installed version

npm WARN EBUNDLEOVERRIDE Replacing bundled npm > read-installed with new installed version

npm WARN EBUNDLEOVERRIDE Replacing bundled npm > read-package-json with new installed version

npm WARN EBUNDLEOVERRIDE Replacing bundled npm > rimraf with new installed version

npm WARN EBUNDLEOVERRIDE Replacing bundled npm > sha with new installed version

npm ERR! code 1

Error: Downloading cordova@4.3.0 failed.

For more information please refer to http://aka.ms/TacoCliKnownIssues

Failed to load Cordova 4.3.0: TACO0204: Error installing cordova via npm. Exit Code: 1. See output for details.

Error: taco-remote test failed.

Error installing cordova via npm. Exit Code: 1. See output for details.

/usr/local/lib/node_modules/remotebuild/node_modules/q/q.js:126

throw e;

^

null: Error installing cordova via npm. Exit Code: 1. See output for details.

Solution:

This is caused by having Node.js 5.1.0 installed on the Mac. Downgrade to 4.2.2 LTS and the remotebuild test will succeed.

For more information about how Acumen can help with your other Software needs, contact us today!