I work on a new project, but I can't install packages correctly. I used npm install
, yarn
, npm install --only=dev
, but there aren't enough. I also try like that deleting node_modules and package-lock.json. The state was the same.
We use in the project babel's 6.x version. Babel has a update, 7.x, I think I get the error because of version differences when I run npm install
, npm install --only=dev
, yarn
.
npm WARN deprecated babel-preset-es2015@6.24.1: � Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN babel-loader@8.0.4 requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN babel-loader@8.0.4 requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself.
I use WebStorm. Before that, I tried to get package for another project with npm install. "Npm" is not successful. WebStorm advice me using Yarn, and I used Yarn. It was worked.
What should I do in the state?
After npm install
, when I run parcel index.html
, I get the console error
"Uncaught TypeError: window.fooes is not a constructor", Uncaught ReferenceError: regeneratorRuntime is not defined.
I know that the code doesn't have a problem, because project work on the team's computer correctly.