Running a package installed with npm in a local repo #1551
Unanswered
anders-vandvik
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am just getting started with
mise
.I have a Python and Node project for which I'd like to use
mise
to maintain the runtimes. I have defined the .mise.toml as followsI have run
mise install
when cd'd into the repo, and that seems to run fine.which python
returns /Users/me/repositories/my-repo/.venv/bin/pythonwhich node
returns /Users/me/.local/share/mise/installs/node/lts/bin/nodewhich npm
returns /Users/me/.local/share/mise/installs/node/lts/bin/npmI have the following dependencies in the
packages.json
I installed these with
npm install
.npm list
returnsWhen I try to run a scrip that uses
swagger-cli
andopenapi-generator-cli
, the commands cannot be found.The
node
part of myPATH
variable shows /Users/me/.local/share/mise/installs/node/lts/binI suspect this is related to PATH and the fact that it does not point to the local node version that's in
my-repo
.I would really appreciate some help here!
What am I doing wrong? How do I fix this? How do I make sure that whenever I cd into a repo that has a local node version, the
PATH
points to that node version?Beta Was this translation helpful? Give feedback.
All reactions