Running npm run dev in homestead reports an error

methods that have been tried

remove cross-env

Dec.01,2021

webpack.config.js hint: cross-env: not found ;

should be require or import in webpack.config.js cross-env , but your cross-env does not have npm I or the download is incomplete.

< hr >

in addition:

learn about

npm I
npm I-D
npm I-S

difference


Please refer to this article: Homestead

Menu