From e5a6043aa67fb7ebf37b904eb7344148312854a3 Mon Sep 17 00:00:00 2001 From: SkyLined Date: Wed, 10 Jul 2024 09:31:32 +0200 Subject: [PATCH] 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 --- bundles/org.openhab.automation.jsscripting/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.automation.jsscripting/README.md b/bundles/org.openhab.automation.jsscripting/README.md index 156d131af76cd..fa2b5f1418b3e 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.