I see so many people ask very similar question but no answer helps me.
So: when I run "npm install" command I am getting the very error.
What I find most unnerving is that my package.json looks like this:
{
"scripts": {
"lint": "eslint src",
"postinstall": "webpack",
"start": "node app.js"
},
"engines": {
"node": ">=6.0.0"
},
"devDependencies": {
"babel-core": "^6.24.0",
"babel-loader": "^6.4.1",
"babel-preset-es2015": "^6.24.0",
"babel-preset-react": "^6.23.0",
"babel-preset-stage-0": "^6.22.0",
"css-loader": "0.23.1",
"eslint": "2.7.0",
"eslint-plugin-react": "5.2.2",
"node-sass": "3.8.0",
"sass-loader": "4.0.0",
"sockjs-client": "^1.1.1",
"style-loader": "0.13.1"
},
"dependencies": {
"axios": "^0.15.3",
"babel-cli": "^6.23.0",
"body-parser": "^1.17.1",
"express": "^4.15.2",
"file-loader": "^0.10.1",
"mongodb": "^2.2.24",
"react": "^15.4.1",
"react-addons-css-transition-group": "^15.4.2",
"react-addons-transition-group": "^15.4.2",
"react-dom": "^15.2.1",
"react-select": "^1.0.0-rc.3",
"reactstrap": "^4.2.0",
"webpack": "^1.14.0"
}
}
So the dependency for es2015 is already there. What can I be doing wrong?
~ $ cat .babelrc
{
"presets": ["es2015", "stage-0", "react"]
}
~ $ npm ls babel-preset-es2015
xxx-landing-pae@1.0.0 /app
`-- (empty)
via Novellizator
No comments:
Post a Comment