Use npm to start the company's react project error report, online and other urgent?

the error message is as follows

clipboard.png

May.26,2022

caused by the difference between the win and mac command lines.

install cross-env
npm install cross-env-D

then replace the command with
cross-env NODE_ENV=dev & &...


each operating system sets the keyword of the environment variable is different.
window is set
mac is export

Menu