- Enviroment
- Ubuntu 20.04
- Intellij IDEA 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // mv node_modules node_modules_old && npm install | |
| var fs = require('fs') | |
| var path = require('path') | |
| var node_modules = path.join(__dirname, 'node_modules') | |
| var node_modules_old = path.join(__dirname, 'node_modules_old') | |
| fs.readdir(node_modules, function(err, files) { | |
| files.forEach(function(dir) { | |
| if (dir.charAt(0) === '.') return |