Level-Up-JavaScript-Testing-101
Level-Up-JavaScript-Testing-101 copied to clipboard
after npm install, npm (run) start doesn't work
Steps to reproduce:
-
git clone https://github.com/leveluptuts/Level-Up-JavaScript-Testing-101.git -
cd .\Level-Up-JavaScript-Testing-101\,npm install -
npm start(ornpm 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
Hello,
I had the same problem, it's probably just a conflict with the version of the parcel-bundler package. Try this :
- delete your
node_modules - delete your
package-lock.json - in your
package.jsonfile, delete alldevDependencies - then run these commands:
-
npm install -g parcel-bundler, -
npm install -g jest -
npm install parcel-bundler babel-preset-env jest --save-dev
- so we basically just updated everything, then try to
npm startagain
Good luck! 🎩
Hello,
I had the same problem, it's probably just a conflict with the version of the parcel-bundler package. Try this :
- delete your
node_modules- delete your
package-lock.json- in your
package.jsonfile, delete alldevDependencies- then run these commands:
npm install -g parcel-bundler,npm install -g jestnpm install parcel-bundler babel-preset-env jest --save-dev
- so we basically just updated everything, then try to
npm startagainGood 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