]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add info about npm requiring path (#17022)
authorSkyLined <cojmpjum_github.com@sxd.be>
Wed, 10 Jul 2024 07:31:32 +0000 (09:31 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jul 2024 07:31:32 +0000 (09:31 +0200)
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 <cojmpjum_github.com@sxd.be>
bundles/org.openhab.automation.jsscripting/README.md

index 156d131af76cd1e6162be88964634edbb17ec246..fa2b5f1418b3e4ddd18265ec2c8722dff415117d 100644 (file)
@@ -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.