You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/30 20:15:58 UTC

[GitHub] [cordova-cli] AiAbdrahim commented on pull request #292: CB-12242 : Use yarn instead of npm

AiAbdrahim commented on pull request #292:
URL: https://github.com/apache/cordova-cli/pull/292#issuecomment-908660685


   @jayvdb 
   your shell is helpful at now, thanks
   i got a problem when i tried to add plugin, yarn say `error Command "view" not found` so also `npm view foo` needs to invoke `yarn info foo`
   i don't know much about shell but makes a try and its work fine :)
   
   > ```shell
   > #!/bin/bash
   > 
   > args="$@"
   > arg2="$2"
   > if [ "$1" = "install" ] && [ -n "$arg2" ] && [ "${arg2/--//}" = "$arg2" ] ; then
   >     args="${args/install/add}"
   > fi
   > 
   > if [ "$1" = "view" ] && [ -n "$arg2" ] && [ "${arg2/--//}" = "$arg2" ] ; then
   >     args="${args/view/info}"
   > fi
   > 
   > yarn $args
   > ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org