[ https://issues.apache.org/jira/browse/CB-13902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16369418#comment-16369418 ]
Jan Piotrowski (Sujan) edited comment on CB-13902 at 2/19/18 9:58 PM: ---------------------------------------------------------------------- Even when globally installed I get an error as it also has to be installed locally in `cordova-js`: {code} λ coho prepare-platform-release-branch --version 6.0.0 -r windows Running from C:\Projects\Cordova cordova-windows/ =============== Executing: git remote update origin cordova-windows/ =============== Executing: git branch -r --list origin/master origin/master cordova-windows/ =============== Already up-to-date: cordova-windows cordova-windows/ =============== Executing: git branch -r --list origin/6.0.x cordova-windows/ =============== Executing: git checkout 6.0.x Already on '6.0.x' cordova-js/ ==================== Executing: git remote update origin cordova-js/ ==================== Executing: git branch -r --list origin/master origin/master cordova-js/ ==================== Already up-to-date: cordova-js cordova-js/ ==================== Executing: grunt compile:windows --platformVersion=6.0.0 grunt-cli: The grunt command line interface (v1.2.0) Fatal error: Unable to find local grunt. If you're seeing this message, grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: http://gruntjs.com/getting-started (node:12108) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 99 at ChildProcess.whenDone (C:\Projects\Cordova\cordova-coho\src\superspawn.js:144:23) at ChildProcess.emit (events.js:160:13) at maybeClose (internal/child_process.js:943:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) (node:12108) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 13) (node:12108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {code} Running `npm install` does not really fix this as `node_modules' gets deleted when running the command somehow. was (Author: sujan12): Even when globally installed I get an error: {code} λ coho prepare-platform-release-branch --version 6.0.0 -r windows Running from C:\Projects\Cordova cordova-windows/ =============== Executing: git remote update origin cordova-windows/ =============== Executing: git branch -r --list origin/master origin/master cordova-windows/ =============== Already up-to-date: cordova-windows cordova-windows/ =============== Executing: git branch -r --list origin/6.0.x cordova-windows/ =============== Executing: git checkout 6.0.x Already on '6.0.x' cordova-js/ ==================== Executing: git remote update origin cordova-js/ ==================== Executing: git branch -r --list origin/master origin/master cordova-js/ ==================== Already up-to-date: cordova-js cordova-js/ ==================== Executing: grunt compile:windows --platformVersion=6.0.0 grunt-cli: The grunt command line interface (v1.2.0) Fatal error: Unable to find local grunt. If you're seeing this message, grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: http://gruntjs.com/getting-started (node:12108) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 99 at ChildProcess.whenDone (C:\Projects\Cordova\cordova-coho\src\superspawn.js:144:23) at ChildProcess.emit (events.js:160:13) at maybeClose (internal/child_process.js:943:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) (node:12108) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 13) (node:12108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {code} > prepare-platform-release-branch: `grunt` dependency is unclear > -------------------------------------------------------------- > > Key: CB-13902 > URL: https://issues.apache.org/jira/browse/CB-13902 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-coho > Reporter: Jan Piotrowski (Sujan) > Priority: Major > > Seems `coho prepare-platform-release-branch` needs grunt to be installed > globally: > {code} > C:\Projects\Cordova\cordova-windows (6.0.x -> origin) (cordova-windows@6.0.0) > λ coho prepare-platform-release-branch --version 6.0.0 -r windows > Running from C:\Projects\Cordova > cordova-windows/ =============== Executing: git remote update origin > cordova-windows/ =============== Executing: git branch -r --list origin/master > origin/master > cordova-windows/ =============== Already up-to-date: cordova-windows > cordova-windows/ =============== Executing: git branch -r --list origin/6.0.x > cordova-windows/ =============== Executing: git checkout 6.0.x > Already on '6.0.x' > cordova-js/ ==================== Executing: git remote update origin > cordova-js/ ==================== Executing: git branch -r --list origin/master > origin/master > cordova-js/ ==================== Already up-to-date: cordova-js > cordova-js/ ==================== Executing: grunt compile:windows > --platformVersion=6.0.0 > (node:8516) UnhandledPromiseRejectionWarning: Error: grunt: Command failed > with exit code ENOENT > at ChildProcess.whenDone > (C:\Projects\Cordova\cordova-coho\src\superspawn.js:144:23) > at ChildProcess.emit (events.js:160:13) > at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12) > at onErrorNT (internal/child_process.js:389:16) > at process._tickCallback (internal/process/next_tick.js:152:19) > (node:8516) UnhandledPromiseRejectionWarning: Unhandled promise rejection. > This error originated either by throwing inside of an async function without > a catch block, or by rejecting a promise which was not handled with .catch(). > (rejection id: 13) > (node:8516) [DEP0018] DeprecationWarning: Unhandled promise rejections are > deprecated. In the future, promise rejections that are not handled will > terminate the Node.js process with a non-zero exit code. > {code} > This isn't mentioned anywhere or at least I couldn't fint it. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org