Skip to content

Commit 643b4e8

Browse files
author
SkyLined
authored
Add info about npm requiring path (openhab#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 <[email protected]>
1 parent b37d0f0 commit 643b4e8

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.automation.jsscripting

1 file changed

+1
-1
lines changed

bundles/org.openhab.automation.jsscripting/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ Follow these steps to create your own library (it's called a CommonJS module):
14291429
```
14301430
14311431
4. Tar it up by running `npm pack` from your library's folder.
1432-
5. Install it by running `npm install <name>-<version>.tgz` from the `automation/js` folder.
1432+
5. Install it by running `npm install <path-to-library-folder>/<name>-<version>.tgz` from the `automation/js` folder.
14331433
6. After you've installed it with `npm`, you can continue development of the library inside `node_modules`.
14341434
14351435
It is also possible to upload your library to [npm](https://npmjs.com) to share it with other users.

0 commit comments

Comments
 (0)