C
C
CryPack2021-12-13 14:22:02
Node.js
CryPack, 2021-12-13 14:22:02

Create-vk-mini-app does not create an application template. Can you help?

I'm trying to create a mini-application with: npx @vkontakte/create-vk-mini-app myApp
In the project folder, the source code of the application template should appear in the src folder, but only node-modules, package.json, etc. lie. and in the console the error is:

Mistake
?? npm error:
Error: Command failed: cd myApp && npm install [email protected]^7.0.3 [email protected]^4.13.0 [email protected]^4.0.3 --save-dev
 && npm install @vkontakte/[email protected]^1.92.0 @vkontakte/[email protected] @vkontakte/[email protected]^4.5.0 [email protected]^10.1.
0 [email protected]^4.1.0 [email protected]^2.4.1 [email protected]^2.0.0 [email protected]^2.0.0  [email protected]^15.7.2 [email protected]^17.0.2 [email protected]^17.0.2 @vkon
takte/[email protected] @vkontakte/[email protected]
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies
.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies
.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams
 API instead.
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScri
pt syntax/features added
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use
@rollup/plugin-babel.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams
 API instead.
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive u
pdates.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain
 circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated [email protected]: [email protected]<3.3 is no longer maintained and not recommended for usage due to the number
 of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x
even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @vkontakte/[email protected]
npm ERR! node_modules/@vkontakte/vkjs
npm ERR!   @vkontakte/[email protected]"0.22.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @vkontakte/[email protected]"^0.20.0" from @vkontakte/[email protected]
npm ERR! node_modules/@vkontakte/vkui
npm ERR!   @vkontakte/[email protected]"4.5.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\user\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Local\npm-cache\_logs\2021-12-13T11_03_20_576Z-debug-0.log

Going to Google constantly talked about the need to add the "--force" or "--legacy-peer-deps" argument to the command, but this does not help either.
Please help, suggest at least in which direction to look

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CryPack, 2021-12-16
@CryPack

In general, a closer reading of the logs and errors led to the fact that you need to downgrade npm to 6.4.11 using npm i [email protected] -g. After that, everything is installed without tambourines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question