- encountered the following webpack problems.
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"webpack": "4.44.2"
Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:
/Users/admin/node_modules/webpack (version: 5.2.6)
causes: /users/admin/node_ The modules/
folder has a higher version of webpack
than the one used when creating
create react app
.
solution: in the corresponding folder, sudo NPM unified webpack - G
and sudo NPM unified webpack cli - G
uninstall the manually installed webpack package tools. Because react will generate its own appropriate version of webpack. If it is installed manually, there will be version conflicts.
TheNPM run dev
message is not an internal or external command, nor a runnable program or batch file.
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" "--watch-poll"
'cross-env' Not an internal or external command, and not a runnable program or batch file. `
reason: is not installed with administrator rights
solution: is installed with administrator rights in the project sudo yard install
installation
PS: installation command
yarn create umi mypro //mypro is the project noun
=> Select ant-design-pro
=> Select V5/V4
cd mypro // move to the mypro folder
sudo yarn install
** wait for installation, the process may be slow, it is recommended to set taobao image **
yarn start //start mypro project
Project construction reference:
Ant Design Pro project construction
Read More:
- [Solved] Ant Design Pro Project Startup Error: ChunkError mf-va_remoteEntry umi
- React ant design pro Error reported in the background after removing internationalization
- How to Fix Webpack run error webpack dev server
- Ant Design Vue-Table Error: warning.js?2149:7 [How to Solve]
- NPM start project error: cannot find module ‘webpack’ problem solution
- [Solved] Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are “development”, “test”, and “production”. Instead, received: undefined.
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- Solve the problem that the native machine cannot use ant script checkout project
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution
- [Solved] Webpack compilation Error: Cannot find module’webpack-cli/bin/config-yargs’
- webpack4 Use webpack-dev-server Error [How to Solve]
- Spring boot uses configuration interface webmvcconfigurer to solve cross domain problems
- Maven Packaging ERROR: Some problems were encountered while processing the POMs
- [Solved] Error: Cannot find module ‘webpack-cli/package.json‘
- [Solved] This application has no explicit mapping for /error, so you are seeing this as a fallback
- This application has no explicit mapping for /error, so you are seeing this as a fallback.
- [Samtools] Run error: error while loading shared libraries: libcrypto.so.1.0.0 or libncurses.so.5 or libtinfow.so.5