【发布时间】:2020-06-10 15:15:24
【问题描述】:
你们能帮我解决这个问题吗?我在为我的 Laravel Mix 运行 npm run dev 时遇到了麻烦。我按照下面的链接,但仍然存在错误。我的操作系统有问题吗?我试图删除 node_modules,运行 npm install --global cross-env。并再次运行 NPM 安装。
'cross-env' is not recognized as an internal or external command,
https://github.com/JeffreyWay/laravel-mix/issues/478
我运行npm run dev时总是遇到的错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 1
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/baloghdominik/.npm/_logs/2020-02-26T17_05_54_290Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/baloghdominik/.npm/_logs/2020-02-26T17_05_54_315Z-debug.log
【问题讨论】:
-
向我们展示您的 package.json 内容。节点版本 npm 版本也可能有用
标签: npm npm-install laravel-mix