首页 > 其他分享 >cypress 执行启动npm一直停在"fetchMetadata: sill resolveWithNewModule"的问题

cypress 执行启动npm一直停在"fetchMetadata: sill resolveWithNewModule"的问题

时间:2022-09-18 10:24:11浏览次数:88  
标签:npm node cypress resolveWithNewModule js fetchMetadata

查看cypress的缓存位置

PS D:\ema_cypress> npx cypress cache path C:\Users\antony\AppData\Local\Cypress\Cache

node运行js文件时报错 node 01.js 直接找到C:\Users\antony\AppData\Local\npm-cache 清空后再次打开终端运行时正常

internal/modules/cjs/loader.js:905   throw err

 

解决npm一直停在"fetchMetadata: sill resolveWithNewModule"的问题

有的资料说node版本是旧的导致的,可我的node是v12.16,所以说不是这个原因

换成淘宝的源

npm config set registry https://registry.npm.taobao.org

配置后可通过下面方式来验证是否成功

npm config get registry

最后问题解决

npx run cypress

标签:npm,node,cypress,resolveWithNewModule,js,fetchMetadata
From: https://www.cnblogs.com/51testing/p/16704293.html

相关文章