安装jsdom/tough-cookie 【Error: Cannot find module ‘jsdom‘】的解决方法

本人使用nvm 安装的node

解决方法:
cmd 管理员模式下
npm install npm install -g jsdom
tough-cookie与上同理
再把目录 放到环境变量中

参考:

https://blog.csdn.net/qyk594760/article/details/134353102
https://blog.csdn.net/JJ_Smilewang/article/details/127823953

posted @ 2023-12-10 23:16  __username  阅读(195)  评论(0)    收藏  举报