Nodered template <script type="text/javascript" src="/js/library.nocache.js"></script>

Hi all, I'm writing a template node in node red. The html page require import an external js file and I put the external projects in ~/.node-red/js/ folder and in html page I wrote

<script type="text/javascript" src="/js/library.nocache.js"></script>

but the library is not loaded. Where is the mistake?
many thanks in advance

The file needs to be served either by using http-in/out nodes or by setting up a static entry in settings.js file.

See this post: Refer in node to flows location / Serve files from flows location - #2 by Steve-Mcl