module.js:338 throw err in node.js

前端 未结 6 548
陌清茗
陌清茗 2021-02-08 01:31

I\'m using ubuntu and I\'m trying to run a script using nodejs and i\'m getting this error.

/home/bebz/Documents/test# node server.js
module.js:338
throw err;
           


        
6条回答
  •  清歌不尽
    2021-02-08 01:41

    I also got the same issue , u should try npm install , npm update is also an option but with npm update latest npm version will be installed in your local environement . This is not desirable for global project as u may find unmet dependencies issue at global environment then.

    I would suggest use npm install

提交回复
热议问题