Skip to content

Describe how to install *latest* node-wot  #877

Open

Description

@danielpeintner

In some cases it might be useful to install/test node-wot at a given status (on Github)
e.g.,

main

npm install https://github.com/eclipse/thingweb.node-wot.git

dedicated branch/commit

npm install https://github.com/eclipse/thingweb.node-wot.git#<branch-or-commit>

certain PR

npm install https://github.com/eclipse/thingweb.node-wot.git#pull/<id>/head

Shall we add some notes about this possibility?
Maybe in the development section?

Activity

  1. changed the title [-]Describe how to install node-wot [/-] [+]Describe how to install *latest* node-wot [/+] on Nov 22, 2022
  2. egekorkan commented on Nov 22, 2022

    @egekorkan
    Member

    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)

  3. danielpeintner commented on Nov 22, 2022

    @danielpeintner
    MemberAuthor

    I think what is really needed is also what to put in a package.json file of my own project

    I think this is not different. If you run
    npm install https://github.com/eclipse/thingweb.node-wot.git
    it will update package.json accordingly.

    // package.json
    ...
      "dependencies": {
        "thingweb.node-wot": "github:eclipse/thingweb.node-wot"
      }
    ...

    how to include only one binding and not install every one of them (which is what the instructions above would do)

    I think there are many more variants but I suggest to refer to https://docs.npmjs.com/cli/link/

  4. danielpeintner commented on Nov 23, 2022

    @danielpeintner
    MemberAuthor

    @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 ;-)

  5. ctron commented on Dec 2, 2022

    @ctron
    Contributor

    I wasn't able to do this either. I ended up adding two (or more) modules from git. But that worked just fine.

  6. danielpeintner commented on Oct 2, 2026

    @danielpeintner
    MemberAuthor

    A reminder for me (and anyone else) who wants to try out a PR rapidly

    1. 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
    {
      "dependencies": {
        "@node-wot/core": "^0.9.2",
        "thingweb.node-wot": "github:eclipse/thingweb.node-wot#pull/1574/head"
      }
    }
    
    1. 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.
    2. Run your tests with a simple JS script via node client.js et cetera
  7. danielpeintner commented on Oct 21, 2026

    @danielpeintner
    MemberAuthor

    Some information is provided by @erossignon also

    See #1574 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions