@[TOC](
‘cross-env’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! duipei_nuxt@1.0.0 dev: cross-env NUXT_HOST=0.0.0.0 NUXT_PORT=3333 nuxt
333 nuxt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the duipei_nuxt@1.0.0 dev script. onal logging output above.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
-08-03T15_21_49_025Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2021-08-03T15_21_49_025Z-debug.log
)
解决方法1
运行 npm install --save-dev cross-env
解决方法2
删除依赖包,重新安装