When using the webpack build file project, a dist directory is generated every time. Sometimes, all the old files in the dist directory need to be deleted,
In addition to the RM – RF / dist / command, you can also use the rimraf / dist / command
The function of rimraf
is to package the RM - RF
command in the form of package to delete files and folders, regardless of whether the folder is empty or not
Local installation: NPM install rimraf — save dev
Global installation: NPM install rimraf – G
Use: rimraf & lt; path & gt; [& lt; path & gt;…]
api:rimraf(f, [opts], callback)
Read More:
- Vue init webpack command error Vue cli / node_ modules/_ [email protected]@rimraf/rimraf.js :313
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- The out folder does not appear under the idea project. Set the entire compilation information to the target folder
- Module build failed: error: cannot find module ‘node sass’ error
- Node.js Cannot find module ‘mysql’ ‘express’
- node.js Cannot find module “XXX” solution
- Linux shell RM deletes all. O suffix files in the subdirectory
- Node.js Error: cannot find module ‘xxx’
- Error: cannot find module ‘node sass’
- (node:268660) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘yallist‘
- Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core
- Run webpack error: Error: Cannot find module’webpack/lib/node/NodeTemplatePlugin’
- Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
- Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit
- Reverse function: reverses container contents
- How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core
- Prompt 550 remove directory operation failed when FTP delete folder
- Copy node causes NPM execution error: cannot find module ‘/ / lib / utils/ unsupported.js ‘
- Module build failed (from ./node_modules/postcss-loader/src/index.js):
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7