Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: grunt not in path #605

Closed
CCFenner opened this issue Nov 25, 2019 · 2 comments
Closed

Docker: grunt not in path #605

CCFenner opened this issue Nov 25, 2019 · 2 comments

Comments

@CCFenner
Copy link
Member

CCFenner commented Nov 25, 2019

When building a project containing a module using the @sap/grunt-sapui5-bestpractice-build plugin and the grunt builder, grunt is not found during the build.

ERROR could not build the "my-ui" module: could not execute the "grunt" command: exec: "grunt": executable file not found in $PATH

However,grunt is installed in <module>/node_modules/.bin/ and with the old build tool it was suficiend to build with PATH=./node_modules/.bin:$PATH.
So it looks like previously the build was executed in the module path where ./node_modules/.bin points to the correct directory which is not the case any longer.

Please provide the following info:

  • MBT Version: 1.0.0
  • OS Version: provided in container
  • If possible, provide a link to the project. (contact me)

Steps to Reproduce:

  1. start devxci/mbtci
  2. run export PATH=./node_modules/.bin:$PATH mbt build --platform cf

One solution could be to install NPM's grunt-cli to detect the nearest grunt executable.

@ShimiT
Copy link
Collaborator

ShimiT commented Nov 25, 2019

Please use devxci/mbtci:1.0.1 which includes grunt-cli:1.3.2 .
let me know if it works for you.

@CCFenner
Copy link
Member Author

That solved the issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants