我在竹CI中运行npm run test:CI
(jest-html-记者),但是这个错误发生了:
node:internal/modules/cjs/loader:361
throw err;
^
Error: Cannot find module 'C:\...\node_modules\isexe\index.js'. Please verify that the package.json has a valid "main" entry
我的package.json
中的主要内容设置为'dist/index.js‘
这个错误是什么?我如何解决它?
发布于 2022-04-22 08:53:15
您能否尝试清理缓存:
npm cache clean
如果它不起作用,试着:
npm cache clean --force
另外,我看不到您的文件夹结构,但我认为路由是:'./dist/index.js',而不是'dist/index.js‘。
https://stackoverflow.com/questions/71965953
复制相似问题