简体   繁体   English

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

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

I'm trying to run an existing project but I keep getting this error: error logs image我正在尝试运行现有项目,但我不断收到此错误:错误日志图像

when I try to run "npm i", can someone please explain what this error is about or guide me through the steps to solve it?当我尝试运行“npm i”时,有人可以解释这个错误是关于什么的或指导我完成解决它的步骤吗?

TIA TIA

in case you can't see the logs:如果您看不到日志:

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

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

I can't comment because I don't have enough reputation but try running npm install psl and then npm install because the error mentions a package called psl doesn't exist when the code is asking for it.我无法发表评论,因为我没有足够的声誉,但尝试运行npm install psl然后npm install因为错误提到当代码要求时不存在名为 psl 的包。 It could be a missing dependency for one of the libraries you have.它可能是您拥有的库之一缺少依赖项。 Let me know how that goes :)让我知道这是怎么回事:)

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

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