-
Notifications
You must be signed in to change notification settings - Fork 3
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
npm: command not found
#906
Comments
@predragnikolic Hi! I've transferred this issue to the Node.js CNB GitHub repo. The Node.js owner @colincasey will take a look at this at some point - though in the meantime I would suggest the first thing to try is that you are invoking a shell via the launcher (which depending on the buildpack setup might be the default if no process type is configured): |
Thanks for the quick reply @edmorley. (I will probably write something that doesn't make sense, excuse me) I am pretty sure it is possible, I just do not know the how part. |
So I think the UX can be improved for the Node.js buildpack if it wraps the default process it sets with Compare to what the Procfile CNB does (which is what gets used if an app has a And as I write this, I've just remembered this UX issue also came up here: cc @schneems |
Hello, there is no need to rush, feel free to make the change when ever you feel like it. I will close the issue, because I want to reduce the number of open issues I have. This "issue" is not really an issue for me. |
Hello 👋 ,
Given a simple NodeJS project like this:
node-example.zip
When you unzip it,
cd ./node-example
and runpack build --builder heroku/builder:24 my-hello
.After the image is created, when you run the docker image, and go to the Docker bash terminal.
When I run
npm run hello
,I expect the
npm
(andnode
) bin executables to be available in the $PATHand to see the following output:
Hello
The acutal behavior is that I see
npm: command not found
.Although the build image does contain npm and node bins, they are not added to the $PATH,
When I paste
export PATH=$PATH:/layers/heroku_nodejs-engine/dist/bin
to the docker bash terminal, I will be able to runnpm
andnode
commands.Is there something I am missing to configure in order to have
npm
andnode
without me having to doexport PATH=$PATH:/layers/heroku_nodejs-engine/dist/bin
The text was updated successfully, but these errors were encountered: