DEV Community

Gem Cloud
Gem Cloud

Posted on

2 1

cross-env for front-end (Nextjs) on Windows 10 11

If you are doing front-end projects on windows 10 or 11.
specially, you want to run some of sample codes from GitHub!
Do not forget to install "npm i cross-env" on your project.

> npm i cross-env
Enter fullscreen mode Exit fullscreen mode

The "cross-env" helps us save a lot of time. otherwise the codes threw errors!
for example:

  1. read some of files from folder (markdown for blog etc.) on Nextjs

  2. use "NODE_ENV=development" on project.json, see below command about lingui.

    "__NoWorkOnWindow_lang:extract": "NODE_ENV=development lingui extract --clean",
    "lang:extract": "cross-env NODE_ENV=development lingui extract --clean",

Enter fullscreen mode Exit fullscreen mode

Happy Coding!

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay