Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Remove devDependencies #57

Closed
danielpeintner opened this issue Aug 29, 2017 · 1 comment
Closed

Remove devDependencies #57

danielpeintner opened this issue Aug 29, 2017 · 1 comment

Comments

@danielpeintner
Copy link
Contributor

node-wot is getting quite heavy with all the dependencies (including devDependencies).

Running npm prune --production should do the job to remove all devDependencies. Anyhow, with lerna it's a bit different and with some hint from here I managed to run sudo lerna exec -- npm prune --production on Linux and it gets me down from more than 500MB to 179MB.
Note: I believe there are still dependencies that are not needed at runtime.

Running the same command on Windows fails with ENOENT error

(node:13264) UnhandledPromiseRejectionWarning: Unhandled promise rejection (reje
ction id: 6): Error: spawn npm ENOENT
@mkovatsc
Copy link
Contributor

I did a clean-up of devDependencies vs dependencies. Due to npm, a development node-wot installation is still very large due to the redundant node_modules. Nothing much to do about this unless we change to something like Yarn.

I created an Issue to investigate Yarn on the Eclipse Issue tracker: eclipse-thingweb/node-wot#15

Closing here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants