不知道为什么我在这个包测试咖啡厅里经历了下面的事情-锤头。
stiva@stiva-ThinkPad-T490:~/AC_Automation$ testcafe --version
Using locally installed version of TestCafe.
/home/stiva/AC_Automation/node_modules/testcafe-hammerhead/lib/utils/logger.js:44
const proxyLogger = hammerhead.extend('proxy');
^
TypeError: hammerhead.extend is not a function
at Object.<anonymous> (/home/stiva/AC_Automation/node_modules/testcafe-hammerhead/lib/utils/logger.js:44:32)
at Module._compile (node:internal/modules/cjs/loader:1091:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
at Module.load (node:internal/modules/cjs/loader:971:32)
at Function.Module._load (node:internal/modules/cjs/loader:812:14)
at Module.require (node:internal/modules/cjs/loader:995:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (/home/stiva/AC_Automation/node_modules/testcafe-hammerhead/lib/request-pipeline/context.js:24:34)
at Module._compile (node:internal/modules/cjs/loader:1091:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)我已经更新了test咖啡厅-锤头到它的最新24.2.1,但它仍然发生,每当我试图使用测试咖啡馆做任何事情。
发布于 2021-06-01 07:54:32
我不能用基本的本地TestCafe安装来重现这个问题。尝试删除依赖项和“锁”文件,并再次安装所有依赖项。请注意,您不需要在项目中手动更新testcafe-hamemrhead依赖项,只需安装最新的TestCafe版本即可。如果问题仍然出现,请使用此模板打开一个包含完整示例的新错误报告。
https://stackoverflow.com/questions/67779847
复制相似问题