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 <cojmpjum_github.com@sxd.be>
This commit is contained in:
SkyLined 2024-07-10 09:31:32 +02:00 committed by GitHub
parent b37d0f0381
commit 643b4e8c02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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.