MERN v 2.0 npm test error

Write your response…

Hello, you are running on Windows, so you may have to avoid harmony-proxies. In your package.json change in scripts / test : cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava

with : cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017 node_modules/.bin/nyc node_modules/.bin/ava --serial

This fixed it for me. I'm running on a mac.

Write a reply...

Join a friendly and inclusive Q&A network for coders

  • 🖥Pick the technologies you like & read great content through your feed.
  • 💬Ask a question when you want to learn more about anything.
  • 🚀Share what you know & build your portfolio.
Sign up nowLearn more

loading ...