node error cannot find module already installed

前端 未结 2 2022
灰色年华
灰色年华 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.

    0 讨论(0)
  • 2020-12-14 21:04

    you have installed the module global go to your app and try this to link the global to your application folder

       sudo npm link <MODULeNAME> 
    
    0 讨论(0)
提交回复
热议问题