Error。Cannot find module 'This is the Folder path inwebpack.js'/span>
在Function.Module._resolveFilename(internal/modules/cjs/loader. js:889:15)
在Function.Module._load(internal/modules/cjs/loader. js:745:27)
在Function.executeUserEntryPoint [as runMain] (internal/modules/run_main. js:76:12)
at internal/main/run_main_module.js:17:47 * {
code: 'MODULE_NOT_FOUND'。
requireStack: []
}
npm ERR! code ELIFECYCLE!
npm ERR! errno 1!
npm ERR! @ dev: `webpack serve --config ./bundler/webpack.dev.js`!
npm ERR! Exit status 1!
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! 這可能不是一個問題與npm。有可能是上面的額外日志輸出。
npm ERR! 一個完整的日志of this run可以在in找到。
npm ERR! C:Users21697AppDataRoaming!
pm-cache\_logs2021-09-20T20_54_58_070Z-debug.log
PS C:This是Folder路徑>。
PS: 我洗掉了package-lock & node_modules,并使用npm install重新安裝了npm。
但問題仍然存在,我還試著重新安裝了node js,也是如此
Error: 無法找到模塊'This is the Folder path inwebpack.js'/code>
它正在尋找一個名字/路徑為'This is the Folder path inwebpack.js'的模塊。這看起來不像是一個有效的模塊名稱/路徑。
看起來你在某處添加了一些你不應該添加的除錯文本。
由于你沒有發布任何代碼,所以很難想出其他解釋。
uj5u.com熱心網友回復:
我最后通過重新安裝node js & npm和安裝chokidar 3,使用命令npm i [email protected]解決了這個問題,原來以前的版本不支持node js 14
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/331042.html
標籤:
