Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1292] Can't Install Node.ACS update

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionFixed
Resolution Date2014-08-01T17:40:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsn/a
ReporterShreyan Jain
AssigneePraveen Innamuri
Created2014-08-01T03:29:01.000+0000
Updated2016-03-08T07:37:41.000+0000

Description

I tried to update Node.ACS but each time the update failed with the following error message: "Failed to install acs. Please see the Studio log for more information" Log file: npm ERR! System Darwin 13.3.0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "acs" "--color" "false" npm ERR! cwd /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS npm ERR! node -v v0.8.22 npm ERR! npm -v 1.2.14 npm ERR! type non_object_property_call npm ERR! addLocalDirectory Could not pack "/Users/shreyan/tmp/npm-18418/1406862733664-0.41247094329446554/package" to "/Users/shreyan/.npm/acs/1.0.15/package.tgz" npm ERR! SyntaxError: Unexpected token < npm ERR! at Object.parse (native) npm ERR! at Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:189:33) npm ERR! at Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22) npm ERR! at fs.readFile (fs.js:176:14) npm ERR! at Object.oncomplete (fs.js:297:15) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! npm ERR! System Darwin 13.3.0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "acs" "--color" "false" npm ERR! cwd /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS npm ERR! node -v v0.8.22 npm ERR! npm -v 1.2.14 npm ERR! file /Users/shreyan/tmp/npm-18418/1406862733664-0.41247094329446554/package/lib/templates/free/package.json npm ERR! path /Users/shreyan/tmp/npm-18418/1406862733664-0.41247094329446554/package/lib/templates/free npm ERR! type unexpected_token npm ERR! fstream_path /Users/shreyan/tmp/npm-18418/1406862733664-0.41247094329446554/package/lib/templates/free npm ERR! fstream_type Directory npm ERR! fstream_class Packer npm ERR! fstream_stack Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:192:10) npm ERR! fstream_stack Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22) npm ERR! fstream_stack fs.readFile (fs.js:176:14) npm ERR! fstream_stack Object.oncomplete (fs.js:297:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/npm-debug.log npm ERR! not ok code 0 !ENTRY com.appcelerator.titanium.update.core 4 4 2014-07-31 20:12:15.028 !MESSAGE Error encountered during update !SUBENTRY 1 com.aptana.js.core 4 0 2014-07-31 20:12:15.028 !MESSAGE Failed to install acs. Please see the Studio log for more information.

Comments

  1. Ingo Muschenetz 2014-08-01

    Can you please paste the output of /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/npm-debug.log?
  2. Praveen Innamuri 2014-08-01

    Looks you have a old version of node : v0.8.22 installed on your machine. According to the http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-Node.js, the minimum supported Node version is 0.10.13 or later. Currently Studio doesn't check for any updates for Node if it is already installed on the machine - We will address this in the next release. For now, can you upgrade your Node version (to 0.10.13 or later: http://nodejs.org/download/) and verify that will help to address the installation with Node.ACS ?
  3. Shreyan Jain 2014-08-01

    I updated Node and the installation of Node.ACS worked perfectly this time. Thanks!
  4. Praveen Innamuri 2014-08-01

    Resolving as updating the node version fixed the issue. Created ticket TISTUD-6759 to let Studio update to the Node.JS minimum required version.

JSON Source