You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (Sujan) (JIRA)" <ji...@apache.org> on 2018/02/19 22:04:00 UTC
[jira] [Created] (CB-13903) `coho prepare-platform-release-branch`
removes `cordova-js/node_modules` which contains `grunt` that is required
for it to run
Jan Piotrowski (Sujan) created CB-13903:
-------------------------------------------
Summary: `coho prepare-platform-release-branch` removes `cordova-js/node_modules` which contains `grunt` that is required for it to run
Key: CB-13903
URL: https://issues.apache.org/jira/browse/CB-13903
Project: Apache Cordova
Issue Type: Bug
Components: cordova-coho
Reporter: Jan Piotrowski (Sujan)
{code}
sujan@LenovoX1:/mnt/c/Projects/Cordova/cordova-windows$ coho prepare-platform-release-branch --version 6.0.0 -r windows
Running from /mnt/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 stash save --all --quiet coho stash
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:360) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): Error: grunt: Command failed with exit code 99
(node:360) [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 the command fails.
{code}
sujan@LenovoX1:/mnt/c/Projects/Cordova/cordova-windows$ cd ../cordova-js
sujan@LenovoX1:/mnt/c/Projects/Cordova/cordova-js$ npm install
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm notice created a lockfile as package-lock.json. You should commit this file.
added 479 packages in 196.049s
{code}
So I switch over to install grunt via `npm install`. Then I run the failing command manually to test:
{code}
sujan@LenovoX1:/mnt/c/Projects/Cordova/cordova-js$ grunt compile:windows --platformVersion=6.0.0
Running "compile:windows" (compile) task
generated cordova.windows.js @ 4450a4cea50616e080a82e8ede9e3d6a1fe3c3ec in 22ms
Done.
{code}
Works, as it should, so now back to where I was before and run again:
{code}
sujan@LenovoX1:/mnt/c/Projects/Cordova/cordova-js$ cd ..
sujan@LenovoX1:/mnt/c/Projects/Cordova$ coho prepare-platform-release-branch --version 6.0.0 -r windows
Running from /mnt/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 stash save --all --quiet coho stash
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:521) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): Error: grunt: Command failed with exit code 99
(node:521) [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}
And again the same error. When I check back in `cordova-js` the `node_modules` folder is missing. What!?
Just to check:
{code}
sujan@LenovoX1:/mnt/c/Projects/Cordova$ coho repo-update -r js
Running from /mnt/c/Projects/Cordova
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
sujan@LenovoX1:/mnt/c/Projects/Cordova$
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org