繁体   English   中英

吉普错误! 堆栈错误:找不到模块“psl”

[英]gyp ERR! stack Error: Cannot find module 'psl'

我正在尝试运行现有项目,但我不断收到此错误:错误日志图像

当我尝试运行“npm i”时,有人可以解释这个错误是关于什么的或指导我完成解决它的步骤吗?

TIA

如果您看不到日志:

npm 错误! 代码 7 npm ERR! 路径 C:\\Users\\Kumail\\Documents\\XORD\\alon\\alon\\node_modules\\tree-sitter-c npm ERR! 命令失败 npm ERR! 命令 C:\\WINDOWS\\system32\\cmd.exe /d /s /c node-gyp 重建 npm ERR! gyp 信息,如果它以 ok npm ERR 结尾,它就起作用了! gyp 信息使用 node-gyp@7.1.2 npm ERR! gyp 信息使用 node@14.17.6 | win32 | x64 npm 错误! gyp info find Python using Python version 3.7.3 found at "C:\\Users\\Kumail\\Anaconda3\\python.exe" npm ERR! 吉普错误! 未捕获异常 npm ERR! 吉普错误! 堆栈错误:找不到模块 'psl' npm ERR! 吉普错误! 堆栈 需要堆栈:npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\node_modules\\tough-cookie\\lib\\pubsuffix-psl.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\node_modules\\tough-cookie\\lib\\cookie.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\lib\\cookies.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\index.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\install.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\node-gyp.js npm ERR! 吉普错误! 堆栈 - C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js npm ERR! 吉普错误! 堆栈在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) npm ERR! 吉普错误! 堆栈在 Function.Module._load (internal/modules/cjs/loader.js:745:27) npm ERR! 吉普错误! 堆栈在 Module.require (internal/modules/cjs/loader.js:961:19) npm ERR! 吉普错误! 堆栈在 require (internal/modules/cjs/helpers.js:92:18) npm ERR! 吉普错误! 堆栈在对象。 (C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\request\\node_modules\\tough-cookie\\lib\\pubsuffix-psl.js:32:11) npm ERR! 吉普错误! 堆栈在 Module._compile (internal/modules/cjs/loader.js:1072:14) npm ERR! 吉普错误! 堆栈在 Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) npm ERR! 吉普错误! 堆栈在 Module.load (internal/modules/cjs/loader.js:937:32) npm ERR! 吉普错误! 堆栈在 Function.Module._load (internal/modules/cjs/loader.js:778:12) npm ERR! 吉普错误! 堆栈在 Module.require (internal/modules/cjs/loader.js:961:19) npm ERR! 吉普错误! 系统 Windows_NT 10.0.19042 npm ERR! 吉普错误! 命令 "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Kumail\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "重建" npm呃! 吉普错误! cwd C:\\Users\\Kumail\\Documents\\XORD\\alon\\alon\\node_modules\\tree-sitter-c npm ERR! 吉普错误! node -v v14.17.6 npm ERR! 吉普错误! node-gyp -v v7.1.2 npm ERR! 吉普错误! Node-gyp 无法构建您的包。 npm 错误! 吉普错误! 尝试更新 npm 和/或 node-gyp,如果它不能帮助向包作者提交问题。

npm 错误! 可以在以下位置找到此运行的完整日志:npm ERR! C:\\Users\\Kumail\\AppData\\Local\\npm-cache_logs\\2021-11-08T10_21_18_719Z-debug.log

我无法发表评论,因为我没有足够的声誉,但尝试运行npm install psl然后npm install因为错误提到当代码要求时不存在名为 psl 的包。 它可能是您拥有的库之一缺少依赖项。 让我知道这是怎么回事:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM