安装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  阅读(62)  评论(0编辑  收藏  举报

本文作者:DIVMonster

本文链接:https://www.cnblogs.com/guangzan/p/12886111.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。