l06 执行到 yarn dev 的时候报错,请问什么原因呀?
root@22ad2704fc07:/var/www/yanwug# yarn dev yarn run v1.22.4 $ npm run development npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1587104905959-0.3781740644354059/node but npm is using /home/laradock/.nvm/versions/node/v13.13.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. > @ development /var/www/yanwug > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 98% after emitting SizeLimitsPlugin ERROR Failed to compile with 1 errors 2:28:36 PM error in ./resources/js/app.js
ERROR in ./resources/js/app.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' Require stack:
npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
推荐文章: