Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25010] nodejs build script: npm install failing on linux and windows

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-07-24T19:24:17.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.0.0
ComponentsTooling
Labelsandroid, linux, nodejs, npm, windows
ReporterMichael Gangolf
AssigneeChris Barber
Created2016-06-26T20:12:15.000+0000
Updated2018-08-06T17:49:35.000+0000

Description

When trying to install the node packages with npm install on Linux and Windows. It will stop because it has a node-ios-device dependency. The error when installing node-ios-device is:
npm ERR! Linux 4.5.7-200.fc23.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-ios-device"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: node-ios-device@0.9.5
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64
SDK 6.0.0 (git 26.06.2016) Fedora Linux

Comments

  1. Sharif AbuDarda 2016-06-27

    Hello, Appcelerator support for Linus is revoked. Please ask nodsjs support in their community.
  2. Michael Gangolf 2017-07-22

    Please reopen this ticket again. This problem is affecting windows,too. Since the node_modules folder is not included with Ti SDK 7 anymore you have to run npm install now. On Windows and Linux it will fail because ioslib is a dependency in the package.json: https://github.com/appcelerator/titanium_mobile/blob/master/package.json#L38 This will fail because node-ios-device is darwin only! If you move the dependency to an optionalDependency it will warn you but continue to install the other modules:
         "optionalDependencies":{
           "ioslib": "^1.4.9"
         }
       
  3. Gary Mathews 2017-07-24

    master: https://github.com/appcelerator/titanium_mobile/pull/9242
  4. Chris Barber 2017-07-24

    Stealing ticket from [~gmathews].
  5. Chris Barber 2017-07-24

    Fixed by TIMOB-25016.
  6. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source