在我的主Mac上构建了一个交响乐项目之后,我想在我的MacBook上运行它。
以下是我所做的步骤:
project
F 211
我想要npm run watch来创建manifest.json文件。
以下是运行npm run watch后遇到的错误:
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
johanbrazillier@johans-macbook-air laboutiquefr % yarn build
yarn run v1.22.18
$ encore production --progress
Running webpack ...
Error: File "./assets/controllers.json" could not be found.
- WebpackConfig.js:674 WebpackConfig.enableStimulusBridge
[laboutiquefr]/[@symfony]/webpack-encore/lib/WebpackConfig.js:674:19
- index.js:1030 Encore.enableStimulusBridge
[laboutiquefr]/[@symfony]/webpack-encore/index.js:1030:23
- EncoreProxy.js:51 Proxy.minDistance
[laboutiquefr]/[@symfony]/webpack-encore/lib/EncoreProxy.js:51:53
- webpack.config.js:26 Object.<anonymous>
/Applications/MAMP/htdocs/laboutiquefr/webpack.config.js:26:6
- loader:1105 Module._compile
node:internal/modules/cjs/loader:1105:14
- loader:1159 Module._extensions..js
node:internal/modules/cjs/loader:1159:10
- loader:981 Module.load
node:internal/modules/cjs/loader:981:32
- loader:827 Module._load
node:internal/modules/cjs/loader:827:12
- loader:1005 Module.require
node:internal/modules/cjs/loader:1005:19
- helpers:102 require
node:internal/modules/cjs/helpers:102:18
error Command failed with exit code 1.没有这个文件,我就无法运行我的项目。
知道我为什么会犯这个错误吗?
我有Node,Git,Xcode,Symphony等.安装和更新。
发布于 2022-06-10 11:37:11
正如@vinceAmstoutz建议的那样,composer recipes -o解决了这个问题。
谢谢!
https://stackoverflow.com/questions/72565731
复制相似问题