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 and joni1993 committed Oct 15, 2024
1 parent c247d45 commit e5a6043
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 e5a6043

Please sign in to comment.