'npm --save-dev not updating node_modules
I am new to nodejs and am having trouble with npm.
Whenever I try to install something with 'npm install --save-dev', it shows up in my devDependencies in my package.json but it never gets added to my node_modules folder.
This is what I tried:
- Create new folder
- npm init -y
- npm install typescript --save-dev
Result: In package.json I see "typescript": "^3.1.6" in my devDependencies. No node_modules is even created.
For everyone else it does show up. Can someone help me out here?
Solution 1:[1]
If anyone else is having this issue, make sure your $NODE_ENV wasn't accidentally set to production.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tyler2P |
