From: SkyLined Date: Wed, 10 Jul 2024 07:31:32 +0000 (+0200) Subject: Add info about npm requiring path (#17022) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=643b4e8c02c5da155cc68a9d79ba81bf3eda1534;p=openhab-addons.git Add info about npm requiring path (#17022) 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 --- diff --git a/bundles/org.openhab.automation.jsscripting/README.md b/bundles/org.openhab.automation.jsscripting/README.md index 156d131af7..fa2b5f1418 100644 --- a/bundles/org.openhab.automation.jsscripting/README.md +++ b/bundles/org.openhab.automation.jsscripting/README.md @@ -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 -.tgz` from the `automation/js` folder. +5. Install it by running `npm install /-.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.