Error: Cannot find module 'socket.io'

前端 未结 6 729
闹比i
闹比i 2020-12-16 10:02
[~]# node node.js

Error: Cannot find module \'socket.io\'

[~]# node -v
v0.10.10

socket.io installed:

npm install socket.io

npm W         


        
6条回答
  •  隐瞒了意图╮
    2020-12-16 10:37

    I had the same issue with version 0.12.0 on Windows. I tried npm install -g socket.io but that didn't change anything. Also tried npm cache clean also no change, but after npm update npm -g, things got well.

提交回复
热议问题