Cannot find module “socket.io”
问题 Hi i am trying to run the nodejs script and it pops up the following error message: I have installed socket.io globally using following command: >npm install -g socket.io but still no luck. Any help? 回答1: Use it locally instead, and save to your package.json npm install socket.io --save 来源: https://stackoverflow.com/questions/26521905/cannot-find-module-socket-io