Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

cordovaBuild.configure causing TypeError: pathList.forEach is not a function #27

Closed
rogerhaw opened this issue May 1, 2016 · 1 comment

Comments

@rogerhaw
Copy link

rogerhaw commented May 1, 2016

running this task in a gulpfile gives me an error - I have the latest code from the repo.... thanks....

gulp.task("configure-cordova", function () {
cordovaBuild.configure({
nodePackageName: "cordova-cli",
moduleCache: "C:\BuildTest\cordova-install",
moduleVersion: "6.0.0"
// ,
// projectPath: "myproject"
});
});

as follows:

[16:46:37] Starting 'configure-cordova'...
[16:46:37] 'configure-cordova' errored after 673 µs
[16:46:37] TypeError: pathList.forEach is not a function
at joinAndCreatePath (C:\BuildTest\buildmob\node_modules\taco-team-build\lib\ttb-util.js:62:14)
at Object.parseConfig (C:\BuildTest\buildmob\node_modules\taco-team-build\lib\ttb-util.js:169:22)
at Object.configure (C:\BuildTest\buildmob\node_modules\taco-team-build\taco-team-build.js:29:31)
at Gulp. (C:\BuildTest\buildmob\gulpfile.js:71:17)
at module.exports (C:\BuildTest\buildmob\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (C:\BuildTest\buildmob\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (C:\BuildTest\buildmob\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (C:\BuildTest\buildmob\node_modules\orchestrator\index.js:134:8)
at C:\Users\msdnh_000\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129:20
at nextTickCallbackWith0Args (node.js:420:9)

@rogerhaw
Copy link
Author

rogerhaw commented May 1, 2016

ok..found that the latest version was installed globally (as per Readme instructions) npm install -g c:\path\to\taco-team-build
but need to install locally
npm install c:\path\to\taco-team-build
to get latest version.
thx

@rogerhaw rogerhaw closed this as completed May 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant