Error reason:
as shown in the title, command Vue init webpack Vue through Vue cli tool_ An error is reported when the portal creates a Vue project, indicating that the connection timed out because the intranet cannot be downloaded. The screenshot of the timeout error is as follows:
Solution:
to create offline, we need to download Vue templates/webpack in GitHub warehouse, and then extract it locally.
1. First, create a new .Vue templates directory under the root directory of each user. Note the dot (.)
2. Go to the Internet to download webpack
the download address is: https://github.com/vuejs-templates/webpack After downloading, unzip it to the. Vue templates directory under the local user directory.
3. The downloaded compressed package is webpack-development.zip. After decompression, we need to change the directory name to webpack
4. In this way, we will conduct Vue init webpack When using the Vue_portal command, you need to bring the parameter — offline, which means offline initialization
Read More:
- Vue init webpack Error: unable to verify the first certificate
- Vuejs composite ElementUI component library error
- How to Solve Webpack packag iconfont font error
- [Solved] Webpack compile error: SyntaxError: Unexpected token =
- [Solved] Vue uses webpack to package error: Createapp is not a function
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- How to download files by post submission under Ajax
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] Webpack Error: SecurityError: (:) [], PSSecurityException
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] IE Browser Error: unhandled promise rejection error: access is denied. File stream Download
- Failed to resolve async component default: ChunkLoadError: Loading chunk 7 failed
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- [Solved] Failed to load config “react-app“ to extend from.
- [Chrome]: DevTools failed to load source map… (How to Solve)