تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ emad ta
خط در اجرا
جامعه نود جی اس ایجاد شده در ۲۹ اردیبهشت ۱۴۰۰

سلام متاسفانه سیستم اونجایی که میایم و یک  NODE_ENV=development تعریف میکنیم رو نمیخونه

$ yarn run  prod
yarn run v1.22.10
$ NODE_ENV=production webpack --mode production
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ yarn dev
yarn run v1.22.10
$ NODE_ENV=development webpack --mode development
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
console.log(process.env.NODE_ENV,"===="); // undefined ===

پاسخ :

 

دوستان اگر مشکل من رو داشتین با نصب این پکیج کارتون راه میوفته

npm install -g win-node-env
emad ta ۲۹ اردیبهشت ۱۴۰۰، ۰۶:۲۷