The specific error is
[22:54:56] err! Parse WePY config failed. Are you trying to use WePY 2 to build WePY 1 project?
[22:54:56] ERR! Unexpected type: plugins expect a Array
This is because
the version of wepy used in the current project is 1. X, while the version of wepy on the computer is 2, X
NPM install wepy cli – G command installs version 1. X
NPM install @wepy cli – G command installs version 2. X
the difference [email protected]
Solution:
Locate C:\users\XX\appdata\roaming\NPM\node_Modules folder
delete the @wepy folder, and then execute NPM install wepy cli – G
Read More:
- [Solved] Error: Cannot find module ‘webpack-cli/package.json‘
- Cli Write Error: This is related to npm not being able to find a file. [Solved]
- [Solved] Executing npm install error: npm ERR! code EINTEGRITY
- [Solved] NRM Error: error code: ‘err’_INVALID_ARG_Type ‘
- [Solved] This is probably not a problem with npm. There is likely additional logging output above.
- Some problems encountered in the initial construction of Ant Design Pro project, such as cross Env, webpack and so on
- Error Report of Yarn Create UMI
- [Solved] Electron Error: Error: Electron failed to install correctly, please delete node_modules/electron and try
- NPM start project error: cannot find module ‘webpack’ problem solution
- How to Solve Docker failed to initialize Error
- NPM Install Error: npm ERR! ERESOLVE unable to resolve dependency tree
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- Mac error: SH: Vue cli service: command not found
- [Solved] NPM Error: gyp: No Xcode or CLT version detected!
- [Solved] Vite Project jenkins Auto Package Error: failed to load config from ../vite.config.js You installed esbuild on
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- [Solved] npm install [email protected]~1.32 sass-loader deepmerge -D Install Error
- Cv2.dnn read model error [How to Solve]
- Mac Error: sh: vue-cli-service: command not found
- Yarn add package loading error: operation not permitted, unlink …