eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.23k stars 866 forks source link

use npx with yarn #943

Open delanym opened 3 years ago

delanym commented 3 years ago

I've gone with yarn, but now I need npx. Do I have to switch to npm?

kinow commented 3 years ago

@delanym I use yarn with a Vue.js project, and I just invoke npx and it works without issues. If you have installed npx globally, it should be able to run without issues. I just tested on a Java project I'm using frontend-maven-plugin, and it successfully invoked vue-cli-service.

kinow@ranma:~/Development/java/jena/jena/jena-fuseki2/jena-fuseki-ui$ yarn run vue-cli-service lint
yarn run v1.22.5
$ /home/kinow/Development/java/jena/jena/jena-fuseki2/jena-fuseki-ui/node_modules/.bin/vue-cli-service lint
 DONE  No lint errors found!
Done in 4.15s.
kinow@ranma:~/Development/java/jena/jena/jena-fuseki2/jena-fuseki-ui$ npx vue-cli-service lint
 DONE  No lint errors found!