[jira] [Comment Edited] (CB-13902) prepare-platform-release-branch: `grunt` dependency is unclear

2018-02-20 Thread Jan Piotrowski (Sujan) (JIRA)

[ 
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/20/18 10:08 AM:
---

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` in `cordova-js` fixes this (as long as you are using 
node4, with node5 it deletes `node_modules` again, see 
https://issues.apache.org/jira/browse/CB-13494)


was (Author: sujan12):
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.

> prepare-platform-release-branch: `grunt` dependency is unclear
> --
>
> Key: CB-13902
> URL: https://issues.apache.org/jira/browse/CB-13902
>  

[jira] [Comment Edited] (CB-13902) prepare-platform-release-branch: `grunt` dependency is unclear

2018-02-19 Thread Jan Piotrowski (Sujan) (JIRA)

[ 
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 ins