-
-
Notifications
You must be signed in to change notification settings - Fork 997
-
-
Notifications
You must be signed in to change notification settings - Fork 997
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
"node" and "npm": executable file not found in $PATH #694
Comments
I just came here to report the same thing. The latest image doesn't have node and npm in the PATH. |
obviously the new 'streamlined' php images don't have node support at all - I do not know if this is on purpose or by accident |
As I build my own php images, I still install node with the following lines: RUN apt-get install -y gnupg Mark had the same setup, but was using an outdated version of node |
The thing is... there is no reference to this strimlined image being not compatible with the custom CLI Commands. If so, it would be nice to reference this lack of support somewhere in the README.md |
First of all, thank you to mark and commu for this great work. I am also stuck with this same problem. Before the problem is fixed, are there any old versions compatible with grunt? Or create a "bin/setup-grunt" script. Would you have an idea ?
Thanks for all, |
I would like to give Mark a chance to answer, why he dismissed the installation of node. |
I confirmed that npm and node does not available on the latest Automated Setup which has markoshust/magento-php:8.1-fpm-0 |
After installing the node and npm by myself as @dirkreitz suggested, I had a problem with the source maps of the css files. For some reason it wasnt showing on the chrome . I solve it by implementing this suggesion
and less.js
|
Sorry for the delay in my response of this issue, just got over a big course creation bender. I forgot to note the removal of node & npm in the latest images. If you absolutely need these, I'd recommend reverting back to the previous Docker images for the time being. I'd like to move node/npm to their own containers. I wasn't sure if the code is dependent upon the PHP images or not, but there should be a way to make the binaries accessible within their own containers. This would provide the ability to update node/npm sources without affecting the PHP image. I'll try to take a look at this soon, but if anyone wants to take a stab at this, let me know! |
|
Thanks @artmouse for your reply ! I choosed to downgrade |
|
I use markoshust/magento-php:8.1-fpm-develop |
I was planning on putting npm & node in their own container, but it seems there is a lot of dependencies such as cache-clean not working unless node is installed. I'll be adding them back into this main image momentarily and will rebuild these images 👍 Really sorry if this has inconvenienced anyone, but will get these packages added very soon. |
I did forget there is an open PR which could potentially add this as a separate container instead https://github.com/markshust/docker-magento/pull/699/files .... looking at this before rebuilding images. |
Rebuilding PHP images/tags https://github.com/markshust/docker-magento/actions/runs/2387076836 |
Released in 43.0.0 |
Description
I need to use npm and nodejs, but it seems that they are not installed.
Steps To Reproduce
Expected Result
No erros.
Error: Executable file not found in $PATH
The text was updated successfully, but these errors were encountered: