"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.21k
stars
867
forks
source link
Can't run cross-env if node package name is in the format "@namespace/packagename" #1043
Do you want to request a feature or report a bug?
bug
What is the current behavior?
In a yarn v1 workspace, my packages are named @test/app1 and @test/app2 . @test/app1 has a postinstall script that is invoked like so:
cross-env ELECTRON_RUN_AS_NODE=1 npx --no-install electron ./postinstall.js
It fails like so:
Note the folder problem:
node_modules\node_modules\cross-env\src\bin\cross-env.js
If you remove the @test/ prefix from the package names, then
mvn install
works fine.If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/alex-dow/frontend-maven-plugin-issue - clone this repo and run mvn install
What is the expected behavior?
mvn install should work without issue in the above repo
Please mention your frontend-maven-plugin and operating system version.
frontend-maven-plugin: 1.12.1 windows 10