我npm run test:CI在 Bamboo CI 中運行 (jest-html-reporter) 但發生了這個錯誤:
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'
這是什么錯誤,我該如何解決?
uj5u.com熱心網友回復:
您可以嘗試清理快取嗎:
npm cache clean
如果它不起作用,請嘗試:
npm cache clean --force
另外,我看不到您的檔案夾結構,但我認為路線是:'./dist/index.js',而不是'dist/index.js'。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/461587.html
