How does nodejs background page introduce jquery?

  node.js, question

How to introduce jquery library backstage?

<script type="text/javascript" src="/socket.io/socket.io.js"></script>
 <script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>

Socket.io is correct, but there is no socket.io.js under the socket.io folder under node_modules, so do I not know any reference rules?

After introducing socket.io to bind server, it will/socket.io/socket.io.jsThe request is redirected to client’s socket.io.js. this file is located in node _ modules/socket.io/node _ modules/socket.io-client/socket.io.js.

Please refer to:
node_module/socket.io/lib/index.js => Server.prototype.attachServe
node_module/socket.io/lib/index.js => Server.prototype.server

In addition, jQuery is introduced at the back end. npm install jquery first, and then

var $ = require("jquery");

In general, jQuery directly introduces the page:

<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>