默认情况下,node_modules文件夹位于我的Laravel项目的根目录下,并且工作正常。我可以用npm run dev编译脚本,没有错误。但是,根据项目文件夹结构,我将node_modules文件夹移动到名为backend的子文件夹中。在这里,我还将像webpack.mix.js、package.json这样的文件移到后端文件夹中,并将run npm install再次放入其
However, a different version of webpack was detected higher up in the tree:
3.Check if C:\Users\John\node_modules\webpack is outside your project directory.但是我在步骤3中遇到了一个问题,我的</