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

installing node-red from repo: MODULE_NOT_FOUND #26

Open
PattonDynamics opened this issue Sep 10, 2023 · 3 comments
Open

installing node-red from repo: MODULE_NOT_FOUND #26

PattonDynamics opened this issue Sep 10, 2023 · 3 comments

Comments

@PattonDynamics
Copy link

When I install node-red-contrib-sm-ind from a local repo, it installs, but does not show up in the node-red palette. Under user setting, it is listed along with all of the nodes, but it has a "MODULE_NOT_FOUND" warning. None of the nodes are enabled.

If I remove it, and re-install it directly from node-red, then it works properly.

The only two differences I have identified are

  1. the node_modules folder node-red-contrib-sm-ind is a symbolic link when installed locally.
  2. the dependency listing in the package.json.
    • local install: "node-red-contrib-sm-ind": "file:../repos/megaind-rpi/node-red-contrib-sm-ind",
    • Install from node-red: "node-red-contrib-sm-ind": "~1.0.4",

The version shown is 1.04. in both cases.
I am installing on a RaspberryPi

Not the end of the world, but frustrating.

@alexburcea2877
Copy link
Member

Thank you for the bug report.
We will look into it and if we can not solve it we keep only the second installing method.
One small question, have you change your current folder to the node-Red (.node-red) install folder before installing the node, as in the instructions?
Can also provide node-red and npm versions on your Raspberry?

@PattonDynamics
Copy link
Author

Yes, I run the following command from within ~/.node-red
npm install ~/repos/megaind-rpi/node-red-contrib-sm-ind

It appears to install correctly, I see everything in the node modules folder. Then I stop/start node-red. None of the sequent nodes are available in the palette, and I see the "MODULE_NOT_FOUND" in the palette settings.

Very strange, I can't tell why this method does not work, but installing from within node-red works fine.

node-red version: 3.1.0
npm -v: 9.6.7

@CodyOakes
Copy link

Had the same issue. Thanks for the work around @PattonDynamics

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

3 participants