node error cannot find module already installed

前端 未结 2 2030
灰色年华
灰色年华 2020-12-14 20:51
[root@zexu websocket_start]# npm ls -g installed
npm WARN ls doesn\'t take positional args. Try the \'search\' command
npm WARN websocket-server@1.4.04 package.json: bugs         


        
2条回答
  •  悲哀的现实
    2020-12-14 21:02

    Have you installed the module with the -g option? I think that not every module is meant to be installed globally, instead, try installing it locally for the project you are creating (npm install), and check if the error persists.

提交回复
热议问题