[TIMOB-25010] nodejs build script: npm install failing on linux and windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-24T19:24:17.000+0000 |
Affected Version/s | Release 7.0.0 |
Fix Version/s | Release 7.0.0 |
Components | Tooling |
Labels | android, linux, nodejs, npm, windows |
Reporter | Michael Gangolf |
Assignee | Chris Barber |
Created | 2016-06-26T20:12:15.000+0000 |
Updated | 2018-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
Hello, Appcelerator support for Linus is revoked. Please ask nodsjs support in their community.
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 becausenode-ios-device
isdarwin
only! If you move the dependency to an optionalDependency it will warn you but continue to install the other modules:master: https://github.com/appcelerator/titanium_mobile/pull/9242
Stealing ticket from [~gmathews].
Fixed by TIMOB-25016.
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.