How to load socket.io without npm in node.exe?

How can I include package such as socket.io in node.exe (windows)? I tried this, but it does not work:

 var socketio = require("./socketio/socket.io") 

While my package.json file is stored in the socketio folder, where it is in the same folder as node.exe.

+4
source share
1 answer

I linked socket.io through npm inside node_modules . You can download zip (extract it first) and just use it thanks to node_modules.

You don't want to use NPM, but do you have package.json (weird)? My advice is simply to install it through NPM. What are package managers for!

+2
source

All Articles