---
# System prepended metadata

title: 'Error: Cannot find module ''semver'' 解决'

---

# Error: Cannot find module 'semver' 解决

完整报错信息
```
module.js:339
    throw err;
    ^
Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\Users\admin\AppData\Roaming\npm\node_modules\npm\l
ib\config\defaults.js:6:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
```

## 解决方案
`reboot`或断开连接重新打开终端。

完全免费社工库
下山虎社工库
https://t.me/MTTigerSGK
#社工库 #免费社工库