Vue – error when using Vue cli/webpack to build project cnpm install dependency: 0 Error:ENOENT :no such file or directory,chmod..... [email protected] \**\css- beautify.js
;
cannot find module 'opn'/async-each/anymatch
As shown in the figure:
There are not many related solutions on the Internet. By searching stackoverflow, it is determined that it is a bug after JS beauty upgrade 1.7.0. At the beginning of the idea is to install the old version of 1.6, also tried to 1.7node_ To replace the relevant files in the modules folder can only solve the practical problem, NPM run dev </ code> continues to report errors as follows:
Unfortunately, one by one module was installed. Because the secondary dependency of plug-ins was suspended, the installation failed. There are too many modules
The final solution is as follows:
1. Modification package.json
//Clear all the dependencies from 替换为[email protected]版本, then cnpm install for dependency installation
2. Install version 1.6.14
//Local installation of version 1.6.14
//cnpm install [email protected]
//At this point, there are two versions of node_modules js-beautify.js
3. Replace dependent files
//The error is that the css-beautify.js file is not found, and if you open the directory you can see that even the lib directory is missing
/// At this point, open node_modules/[email protected]@js-beautify/js and copy all the files in that directory (except index.js),
/// then open node_modules/[email protected]@js-beautify/js and paste all the copied files into it
At this time, the required files for version 1.7.0 already exist:
4. Installation dependency
//js-beautifyThe problem is solved at this point and will no longer affect the installation of the secondary dependencies of the later plugins
// Undo the changes to package.json, thecnpm install
5. Enter the development stage
//npm run dev,done
Read More:
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] Vue.js error: Module build failed: Error: No parser and no file path given, couldn’t infer a parser.
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- [Solved] open failed: ENOENT (No such file or directory)
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- crtdbg.h No such file or directory error [How to Solve]
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- C++: fatal error: variant: No such file or directory
- [Solved] MAC Nginx Error: ginx.pid“ failed (2: No such file or directory)
- [Solved] Error executing Jupyter command ‘notebook‘: [Errno 2] No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- [Solved] fatal error: bits/libc-header-start.h: No such file or directory