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

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