KaiHotz / react-rollup-boilerplate

Boilerplate for creating React component libraries, bundled with Rollup.js to ESM and/or CJS Modules, Storybook, Typescript
https://kaihotz.github.io/react-rollup-boilerplate/
MIT License
300 stars 67 forks source link

NODE_ENV is not recognized #19

Closed zaaakher closed 2 years ago

zaaakher commented 2 years ago

I cloned the repository and ran the first command yarn install and I got this error

image

KaiHotz commented 2 years ago

@zaaakher what version of node.js are you running ? make sure that you are on version 14+

I believe you are on Windows, this might help https://stackoverflow.com/questions/11928013/node-env-is-not-recognized-as-an-internal-or-external-command-operable-comman

zaaakher commented 2 years ago

I'm running on node v15.14.0 Yes installing win-node-env package fixed the error. Thanks 😁👍

KaiHotz commented 2 years ago

@zaaakher good to hear, and thanks for using my boilerplate 😁