Level-Up-JavaScript-Testing-101 icon indicating copy to clipboard operation
Level-Up-JavaScript-Testing-101 copied to clipboard

after npm install, npm (run) start doesn't work

Open YakovL opened this issue 6 years ago • 2 comments

Steps to reproduce:

  1. git clone https://github.com/leveluptuts/Level-Up-JavaScript-Testing-101.git
  2. cd .\Level-Up-JavaScript-Testing-101\, npm install
  3. npm start (or npm run start)

the output is the following (<some path> contains only latin letters and _):

> [email protected] start <some path>\testing\levelup-testing\Level-Up-JavaScript-Testing-101
> parcel index.html

(node:26036) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module './lib/fs'

This is what I get under Win 10 x64, node.js v6.11.3. Any ideas what's wrong?

PS npm test works, though

YakovL avatar Feb 07 '19 21:02 YakovL

Hello,

I had the same problem, it's probably just a conflict with the version of the parcel-bundler package. Try this :

  1. delete your node_modules
  2. delete your package-lock.json
  3. in your package.json file, delete all devDependencies
  4. then run these commands:
  • npm install -g parcel-bundler,
  • npm install -g jest
  • npm install parcel-bundler babel-preset-env jest --save-dev
  1. so we basically just updated everything, then try to npm start again

Good luck! 🎩

hugodessomme avatar Jun 01 '19 14:06 hugodessomme

Hello,

I had the same problem, it's probably just a conflict with the version of the parcel-bundler package. Try this :

  1. delete your node_modules
  2. delete your package-lock.json
  3. in your package.json file, delete all devDependencies
  4. then run these commands:
  • npm install -g parcel-bundler,
  • npm install -g jest
  • npm install parcel-bundler babel-preset-env jest --save-dev
  1. so we basically just updated everything, then try to npm start again

Good luck! 🎩

Dude before I read this I was ready to smash my screen couldn't get OL to work but this babel thing did the trick

maveeh avatar Jan 13 '21 15:01 maveeh