algolia / algolia/instantsearch

npm start do not work in examples/js/e-commerce on windows

Open
#5,652 3 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
4.1k
Forks
553
Avg merge
1d 11h
Merged PRs (30d)
51

Description

### 🐛 Current behavior

When running npm-start we are getting below error on windows systems
BABEL_ENV' is not recognized as an internal or external command.

Suggested fix - add **cross-env** in **package.json** has fixed the issue.

### 🔍 Steps to reproduce

go to instantsearch-master\examples\js\e-commerce
type npm install
type npm start

error - BABEL_ENV' is not recognized as an internal or external command

### Live reproduction

https://codesandbox.io/s/github/algolia/instantsearch.js/tree/templates/instantsearch.js

### 💭 Expected behavior

Server should start at port 3000

### Package version

1.15.0

### Operating system

windows

### Browser

chrome

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Inspect examples/js/e-commerce/package.json and the npm start script first. Reproduce the issue on Windows with npm install and npm start, then verify that the example server starts on port 3000 without the BABEL_ENV error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.