In the example you showed me above, you are installing the package in the root directory. In order for the node to access the package “nanoid” you need to add the dependency in the node-base directory. Check the link below.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| [HELP] Not been able to import external modules | 21 | 18693 | June 18, 2023 | |
| Docker: Cannot find external module installed using npm | 11 | 1898 | April 11, 2022 | |
| Add npm package in docker-compose | 2 | 4396 | January 16, 2024 | |
| How to setup external node_modules in hosted version? | 6 | 4531 | October 25, 2022 | |
| Is NODE_FUNCTION_ALLOW_EXTERNAL not working for you? Maybe this is happening to you. | 3 | 1927 | April 21, 2025 |