You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what is really needed is also what to put in a package.json file of my own project and also how to include only one binding and not install every one of them (which is what the instructions above would do)
@egekorkan was indicating to me that installing the full set of node-wot packages might not feasible in some development scenarios and I agree.
Hence, I tried to find a way to install just one package out of node-wot without a proper publication but I fail. Does anyone know whether that's possible at all via Github. It seems it is not possible. Does someone know? @ctron you seem to have used it, maybe you know more.
Anyhow, besides updating the documentation we still might want to publish more often ;-)
A reminder for me (and anyone else) who wants to try out a PR rapidly
Install PR updates from GitHub via PR number in a local folder, e.g., npm install https://github.com/eclipse/thingweb.node-wot.git#pull/1574/head
Note: The process creates the node_modules folder and also creates package.json. However, the node_modules and package.json contain the core dependency only. e.g., package.json looks like this
Add all the missing/needed packages like "@node-wot/binding-opcua": "^0.9.2" and run step 1 again. Now node_modules folder contains the added package as well.
Run your tests with a simple JS script via node client.js et cetera
Activity
[-]Describe how to install node-wot [/-][+]Describe how to install *latest* node-wot [/+]egekorkan commentedon Nov 22, 2022
I think what is really needed is also what to put in a package.json file of my own project and also how to include only one binding and not install every one of them (which is what the instructions above would do)
danielpeintner commentedon Nov 22, 2022
I think this is not different. If you run
npm install https://github.com/eclipse/thingweb.node-wot.gitit will update
package.jsonaccordingly.I think there are many more variants but I suggest to refer to https://docs.npmjs.com/cli/link/
danielpeintner commentedon Nov 23, 2022
@egekorkan was indicating to me that installing the full set of node-wot packages might not feasible in some development scenarios and I agree.
Hence, I tried to find a way to install just one package out of node-wot without a proper publication but I fail. Does anyone know whether that's possible at all via Github. It seems it is not possible. Does someone know? @ctron you seem to have used it, maybe you know more.
Anyhow, besides updating the documentation we still might want to publish more often ;-)
ctron commentedon Dec 2, 2022
I wasn't able to do this either. I ended up adding two (or more) modules from git. But that worked just fine.
danielpeintner commentedon Oct 2, 2026
A reminder for me (and anyone else) who wants to try out a PR rapidly
npm install https://github.com/eclipse/thingweb.node-wot.git#pull/1574/headNote: The process creates the
node_modulesfolder and also createspackage.json. However, thenode_modulesandpackage.jsoncontain the core dependency only. e.g.,package.jsonlooks like this"@node-wot/binding-opcua": "^0.9.2"and run step 1 again. Nownode_modulesfolder contains the added package as well.node client.jset ceteradanielpeintner commentedon Oct 21, 2026
Some information is provided by @erossignon also
See #1574 (comment)