Skip to content

Commit

Permalink
Add info about npm requiring path (openhab#17022)
Browse files Browse the repository at this point in the history
The command to install an npm package that was suggested in the documentation would not work, as it was missing the required path. I've added information to explain this is required.

Signed-off-by: SkyLined <[email protected]>
  • Loading branch information
SkyLined authored Jul 10, 2024
1 parent b37d0f0 commit 643b4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/org.openhab.automation.jsscripting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ Follow these steps to create your own library (it's called a CommonJS module):
```
4. Tar it up by running `npm pack` from your library's folder.
5. Install it by running `npm install <name>-<version>.tgz` from the `automation/js` folder.
5. Install it by running `npm install <path-to-library-folder>/<name>-<version>.tgz` from the `automation/js` folder.
6. After you've installed it with `npm`, you can continue development of the library inside `node_modules`.
It is also possible to upload your library to [npm](https://npmjs.com) to share it with other users.
Expand Down

0 comments on commit 643b4e8

Please sign in to comment.