[ https://issues.apache.org/jira/browse/CB-10718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16064218#comment-16064218 ]
Haitao Huo commented on CB-10718: --------------------------------- [~filmaj] I get similar error when trying to build android {code} $ node ./cordova-mobile-spec/createmobilespec/createmobilespec.js --android Creating project from local git repos. If you have any errors, it may be from missing repositories. To clone repositories: .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r android -r js -r plugins mkdir cordova-cli\node_modules (cd cordova-lib && npm install) (cd cordova-plugman\ && npm install) mkdir cordova-cli\node_modules ln -s ..\..\cordova-lib cordova-cli\node_modules (cd cordova-cli && npm install) To update all repositories: .\cordova-coho\coho repo-update Checking if you are using master branch of tools refs/heads/master refs/heads/master refs/heads/master refs/heads/master You are on master branch of tools, checking npm links C:\Users\hhuo\work\Cordova\upstream-dev\cordova-mobile-spec\createmobilespec\createmobilespec.js:410 throw new Error('Module ' + linkedModule + ' is not installed at all (direct or npm-linked) in ' + installedModule); ^ Error: Module cordova-js is not installed at all (direct or npm-linked) in cordova-lib at verifyNpmLinkOf (C:\Users\hhuo\work\Cordova\upstream-dev\cordova-mobile-spec\createmobilespec\createmobilespec.js:410:15) at Object.<anonymous> (C:\Users\hhuo\work\Cordova\upstream-dev\cordova-mobile-spec\createmobilespec\createmobilespec.js:427:9) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:393:7) at startup (bootstrap_node.js:150:9) {code} The clone steps are inefficient, maybe we need offer steps for npm link and install. I'm little confused old cordova-lib (cordova-common, cordova-create and cordova-fetch) vs recent cordova-lib (looks like all subfolders are in top level). If you could explain to me how is that, I can upload a PR. > createmobilespec instructions incomplete for cordova-common > ----------------------------------------------------------- > > Key: CB-10718 > URL: https://issues.apache.org/jira/browse/CB-10718 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-mobile-spec > Reporter: Shazron Abdullah > Labels: triaged > > {code} > $ ./cordova-mobile-spec/createmobilespec/createmobilespec.js --ios > Creating project from local git repos. If you have any errors, it may be from > missing repositories. > To clone repositories: > ./cordova-coho/coho repo-clone -r mobile-spec -r plugin-test-framework -r > cli -r lib -r plugman -r ios -r js -r plugins > mkdir cordova-cli/node_modules > (cd cordova-lib/cordova-lib/ && npm install) > (cd cordova-plugman/ && npm install) > mkdir cordova-cli/node_modules > ln -s ../../cordova-lib/cordova-lib cordova-cli/node_modules > (cd cordova-cli && npm install) > To update all repositories: > ./cordova-coho/coho repo-update > Checking if you are using master branch of tools > refs/heads/master > refs/heads/master > refs/heads/master > refs/heads/master > You are on master branch of tools, checking npm links > npm links are OK > Creating project mobilespec... > module.js:338 > throw err; > ^ > Error: Cannot find module 'ansi' > at Function.Module._resolveFilename (module.js:336:15) > at Function.Module._load (module.js:278:25) > at Module.require (module.js:365:17) > at require (module.js:384:17) > at Object.<anonymous> > (/Users/shazron/Documents/git/apache/cordova-lib/cordova-common/src/CordovaLogger.js:20:12) > at Module._compile (module.js:460:26) > at Object.Module._extensions..js (module.js:478:10) > at Module.load (module.js:355:32) > at Function.Module._load (module.js:310:12) > at Module.require (module.js:365:17) > {code} > It should instruct you to run "npm install" inside cordova-lib/cordova-common > as well. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org