[
https://issues.apache.org/jira/browse/CB-11778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15443081#comment-15443081
]
Shazron Abdullah commented on CB-11778:
---------------------------------------
The nightly build CI uses node 0.10.25, where `npm pack` displays this
behaviour.
Using nvm, I tried 0.10.46 (latest 0.10 release) and 0.12.15 (latest 0.12
release) and 4.5.0 (latest 4.x release), the npm bundled with those node
versions exhibited this issue.
The fix is by using node 6.4.0 (the latest 6.x release), where using `npm pack`
it used the proper behaviour.
The CI build should use `nvm` and change to a 6.x version before using `npm
pack`, or just use the latest 6.x node.
> ios nightly is missing packages in node_modules that are in the repo
> --------------------------------------------------------------------
>
> Key: CB-11778
> URL: https://issues.apache.org/jira/browse/CB-11778
> Project: Apache Cordova
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: iOS
> Reporter: Shazron Abdullah
>
> Try to do a platform add:
> {code}
> cordova platform add [email protected]
> {code}
> Error:
> {code}
> Warning: using prerelease version 6.4.0-nightly.2016.8.25.4935f1a5
> ([email protected])
> Warning: using prerelease platform [email protected].
> Use 'cordova platform add ios@latest' to add the latest published version
> instead.
> Adding ios project...
> Running command:
> /Users/shaz/.cordova/lib/npm_cache/cordova-ios/4.3.0-nightly.2016.8.25.582e3577/package/bin/create
> /Users/shaz/Desktop/s/platforms/ios s s --cli
> module.js:457
> throw err;
> ^
> Error: Cannot find module 'elementtree'
> at Function.Module._resolveFilename (module.js:455:15)
> at Function.Module._load (module.js:403:25)
> at Module.require (module.js:483:17)
> at require (internal/module.js:20:19)
> at Object.<anonymous>
> (/Users/shaz/.cordova/lib/npm_cache/cordova-ios/4.3.0-nightly.2016.8.25.582e3577/package/node_modules/cordova-common/src/ConfigParser/ConfigParser.js:22:10)
> at Module._compile (module.js:556:32)
> at Object.Module._extensions..js (module.js:565:10)
> at Module.load (module.js:473:32)
> at tryModuleLoad (module.js:432:12)
> at Function.Module._load (module.js:424:3)
> Error:
> /Users/shaz/.cordova/lib/npm_cache/cordova-ios/4.3.0-nightly.2016.8.25.582e3577/package/bin/create:
> Command failed with exit code 1
> {code}
> If I go into:
> {code}
> ~/.cordova/lib/npm_cache/cordova-ios/4.3.0-nightly.2016.8.25.582e3577/package/node_modules
> {code}
> the package "elementtree" is missing (a lot of others are as well). The
> package elementtree does exist in the repo.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]