-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Reinstalling all plugins very resource hungry #1741
Comments
Also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to reinstall all my plugins on my PRi3 by removing .signalk/node_modules and simply running
npm install
in .signalk.This turned out to be problematic in two ways:
pstree
showed a number ofnpm install
processes and I think i saw node-pre-gyp in top also.Doing the same operation manually, one by one (under
docker run -it --rm -v /home/pi/signalk-settings:/home/node/.signalk --entrypoint /bin/sh signalk/signalk-server:master
) succeeded without breaking a sweat.To me this suggests that just given a package.json
npm install
goes all out, with parallel operations, which may be just too resource intensive for some typical platforms that Signal K is used on.I can think of two solutions here:
sk-reinstall-plugins
script that renames node_modules and package.json and then loops over the plugins there, installing them one by one--reinstall-plugins
that does the same thing as the script. this would support also Windows platformThe text was updated successfully, but these errors were encountered: