I
I
Ihimura2017-01-20 02:56:15
JavaScript
Ihimura, 2017-01-20 02:56:15

Npm doesn't want to install from devDependencies, what should I do?

There is a package.json file and when trying to install modules via npm, modules from the "devDependencies" section are not installed, however, everything from the "dependencies" section is installed quietly, they are not in the "node_modules" folder either. The funny thing is that through the command "npm i babel --save-dev" everything is fine installed. There is no desire to install everything manually, because. modules need to be connected. Has anyone experienced this?

"dependencies": {
    "react": "^15.x",
    "react-dom": "^15.x"
  },
  "devDependencies": {
    "babel": "6.x"
  }

Run command: npm install --dev
4760191b7e8140d887ca82d55b6e3bba.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVG, 2017-01-20
@f_ban

It looks like you have NODE_ENV=production environment variable set
Use
npm install --dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question