vue-cli
vue-cli copied to clipboard
Mutliple warnings and deprecated dependencies on npm install vue/cli
Version
4.4.6
Reproduction link
https://github.com/oci-labs/rapid-stack/blob/master/vue_apps/vue_app/dockerfile
Environment info
System:
OS: Linux 5.4 Alpine Linux
CPU: (1) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 14.5.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.0.0
@vue/babel-preset-app: 3.11.0
@vue/babel-preset-jsx: 1.1.0
@vue/babel-sugar-functional-vue: 1.0.0
@vue/babel-sugar-inject-h: 1.0.0
@vue/babel-sugar-v-model: 1.0.0
@vue/babel-sugar-v-on: 1.1.0
@vue/cli-overlay: 3.11.0
@vue/cli-plugin-babel: ^3.11.0 => 3.11.0
@vue/cli-service: ^3.11.0 => 3.11.0
@vue/cli-shared-utils: 3.11.0
@vue/component-compiler-utils: 3.0.0
@vue/preload-webpack-plugin: 1.1.1
@vue/web-component-wrapper: 1.2.0
vue: ^2.6.10 => 2.6.10
vue-hot-reload-api: 2.3.4
vue-loader: 15.7.1
vue-router: ^3.0.3 => 3.1.3
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.10 => 2.6.10
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: 4.4.6
Steps to reproduce
npm i -g @vue/cli
What is expected?
ok
What is actually happening?
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 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 @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 @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]: https://github.com/lydell/resolve-url#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]: fsevents 1 will break on node v14 and could be using insecure binaries. Upgrade to fsevents 2. npm WARN checkPermissions Missing write access to /usr/local/lib npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/@vue/cli/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I run into this bug when installing vue-cli
Why so many warning lol. See these warning when i use yarn . And this comes when i install other packages .
warning "@vue/cli > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@vue/cli > @babel/preset-env > @babel/plugin-proposal-class-properties > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@vue/cli > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
I have the same warnings.
macOS version: Catalina 10.15.6 npm version: 6.14.7 node version: v14.8.0
~/S/tests โฏโฏโฏ npm install -g @vue/cli
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
/usr/local/bin/vue -> /usr/local/lib/node_modules/@vue/cli/bin/vue.js
> [email protected] install /usr/local/lib/node_modules/@vue/cli/node_modules/fsevents
> node install.js
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
> @apollo/[email protected] postinstall /usr/local/lib/node_modules/@vue/cli/node_modules/@apollo/protobufjs
> node scripts/postinstall
> [email protected] postinstall /usr/local/lib/node_modules/@vue/cli/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
npm WARN @vue/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
+ @vue/[email protected]
added 252 packages from 148 contributors, removed 129 packages, updated 269 packages and moved 6 packages in 45.137s
And it fails using the default options
~/S/tests โฏโฏโฏ vue create someapp
Vue CLI v4.5.3
Failed to check for updates
โจ Creating project in /Users/guilhermealmeida/Sites/tests/someapp.
๐ Initializing git repository...
โ๏ธ Installing CLI plugins. This might take a while...
ERROR Error: spawn yarn ENOENT
Error: spawn yarn ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
~/S/tests โฏโฏโฏ
I also noticed the problem and it would be nice to get an official explanation
I used >yarn global add @vue/cli instead of npm i -g @vue/cli and it worked well.
First you need to uninstall old vue-cli with npm uninstall vue-cli -g
, then proceed to npm install -g @vue/cli
I've tried uninstalling and reinstalling, made sure I am on the latest node and npm still getting the error with the peer dep missing for Vue 3. However, installing Vue 3 doesn't fix the issue either.
Mac UserBlah/.nvm/versions/node/v13.9.0/lib โโโ @vue/[email protected] โโโ [email protected] โโโ [email protected] โโโ [email protected] โโโ [email protected] โโโ [email protected] โโโ [email protected] โโโ [email protected] -> /Users/dywright/dev/ui/phs-ui โโโ [email protected]
npm ERR! peer dep missing: [email protected], required by @vue/[email protected]
I had a similar issue. I used the following commands to firstly update the version of npm I was using, uninstalling older versions of vue cli and re-installing the latest vue cli.
npm install -g npm
npm uninstall vue-cli -g
npm i -g @vue/cli
These steps seemed to work for me. Hope its helpful to others with this issue ๐ค
The above didn't work from me- I get a ton of deprecation warnings on Mac using yarn and npm respectively.. is there any real guidance here on this issue?
macOS Catalina version 10.15.6 node version v14.13.0 npm version 6.14.8
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/[email protected]: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411) 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 @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]: this library is no longer supported npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#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]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN @vue/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
This vue cli is really weird. Tried to find the answer here #2862, but with no success.
Hi all
Had the same problem today too, but think I've managed to solve it.
Currently running: -macOS Catalina 10.15.7 -node.js 14.13.1 -npm 6.14.8
I'm also using oh-my-zsh in my terminal.
I had to do the following having found a previous post.
Working directory: /Users/Peggy
-
I completely removed node and npm. To do this I followed: https://www.positronx.io/how-to-uninstall-node-js-and-npm-from-macos/
-
Then I downloaded the macOS node/npm package and installed this.
-
Once installed, I used the command 'sudo npm install -g @vue/cli' and received the following output:
โ / sudo npm install -g @vue/cli npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142 npm WARN deprecated @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (sideway/joi#2411) 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 @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]: this library is no longer supported npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. *******File Paths for Vue and Vue-CLI ******* /Users/peggy/.npm-packages/bin/vue -> /Users/peggy/.npm-packages/lib/node_modules/@vue/cli/bin/vue.js
npm WARN @vue/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
- Do an echo $PATH. Check that the file paths for both Vue and Vue-CLI are within your $PATH variable. If Vue and Vue-CLI load correctly the file path's will be given as above highlighted *****
If not, as was the case for me I simply did: export PATH=$PATH:/Users/peggy/.npm-packages/bin (AND) export PATH=$PATH:/Users/peggy/.npm-packages/lib/node_modules/@vue/cli/bin
- Punch the air and allow the smile to happen.
Many warnings should be fixed with https://github.com/vuejs/vue-cli/pull/5973.
On windows 10 I first tried with npm i -g @vue/cli
-
but it was reproducing the same error which of course prevented use of vue CLI :
npm WARN @vue/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
However, using yarn instead of npm worked for me.
yarn global add @vue/cli
Recently npm has release (https://www.npmjs.com/package/@vue/compiler-sfc)
with hopefully a fix via npm: npm i @vue/compiler-sfc
Similar problem on my side...
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.x"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.12.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"^8.12.0 || >=9.7.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=8.12.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"^8.12.0 || >=9.7.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules@vue\cli\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10"} (current: {"node":"8.11.1","npm":"6.14.8"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN @vue/[email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
- @vue/[email protected] updated 1 package in 32.628s
although i used npm i @vue/compiler-sfc
in advance and give the following npm packages
+-- @vue/[email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]
Hi all,
Had the same error, I got it fixed by the following commands:
npm install -g npm
npm uninstall vue-cli -g
npm i -g @vue/cli
I had a similar issue. I used the following commands to firstly update the version of npm I was using, uninstalling older versions of vue cli and re-installing the latest vue cli.
npm install -g npm
npm uninstall vue-cli -g
npm i -g @vue/cli
These steps seemed to work for me. Hope its helpful to others with this issue ๐ค
Thanks worked for me
I am not sure all of the symptoms posted here are related. I am getting the same deprecation warnings as OP @dorian-yeager and @kendallroden and @Peggy535 regarding outdated hapi / chokidar / fsevents / har-validator dependencies.
I don't believe theses warnings can be solved by installing / uninstalling vue-cli or anything else. They simply mean the maintainer needs to update the package's dependencies to more recent versions. So our best chance is for @dargmuesli #5973 changes to be released.
Hi all, Had the same error, I got it fixed by the following commands:
npm install -g npm
npm uninstall vue-cli -g
npm i -g @vue/cli
Thanks worked for me
Updating NPM and reinstalling Vue does not work. I kind of expected this since I started using it since a few days ago. Seems like the maintainer needs to update the packages. I hope this won't cause any large issues in the future :) I really like Vue so far.
Same here. Sad, after all this time...is there any update to be expected?
I'd like to clarify that we cannot upgrade transitive dependencies of packages that we are using. Even if we update our direct dependencies, we cannot ensure that these dependencies won't themselves still depend on deprecated packages.
I'd also like to clarify that, while annoying, these warnings don't necessarily mean that these transitive dependencies will have any effect on your app. They could, i.e., be devDependencies
of a package used by a package use by a package used by vue-cli, and yet, that nested, deprecated dependency will never be required at any step of using vue-cli.
Similarly, peer Dependency warnings are also often a side effect of the install process itself or transitive dependencies, but usually not something we can resolve or something affecting your code.
In other words: While we can improve the situation for our direct dependencies in many situations, and usually do (i.e. #5973 mentioned above was merged back in Oct. 2020), we can't resolve warnings like these for transitive dependencies, so you will have to live with them in some scenarios.
That's part of the JS package ecosystem.
Also, @mathiasselleslach please tell me which warnings you got, specifically. I just now installed a new project with
- Vue 3
- TS
- Babel
- router
- Vuex
- Jest
- Cypress
- eslint + prettier
and all I got were 0 deprecation warnings and 6 peerDependency warnings, which are unavoidable due to the npm install process - and most of these are just "misfires". Example:
warning "@vue/cli-plugin-unit-jest > [email protected]" has incorrect peer dependency "vue@^2.x".
warning "@vue/cli-plugin-unit-jest > [email protected]" has unmet peer dependency "vue-template-compiler@^2.x".
warning " > [email protected]" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
warning " > [email protected]" has unmet peer dependency "@babel/[email protected]".
warning " > [email protected]" has unmet peer dependency "babel-jest@>= 24 < 27".
warning " > [email protected]" has unmet peer dependency "jest@>= 24 < 27 ".
See that warning about a missing peer dep for "webpack"? We have webpck 4.46 installed and yet, yarn/npm complain. Why? because webpack is a dependency of @vue/cli-service
, and therefore not listed in your project's package.json
. But it's there and everything it working. Same goes for jest
, babel-jest
and @babel/core
3. sudo npm install -g @vue/cli
think you very much sir
thank
I am facing a weird problem with vue/cli, I have installed it via npm, but no yarn installed in my machine yet, and when I create a project with vue "vue create project-name" and finally it ended up with the following error:
currently running: ubuntu 16.04 memory: 15.6GiB processor: Intelยฎ Coreโข i7 CPU Q 720 @ 1.60GHz ร 8 OS type: 64-bit
But I, eventually, installed yarn globally then I enter "yarn serve " and it ends up with no errors, any more. What is this? Not working with npm but working with yarn!!!!! Any Suggestions would be helpful.
@dorian-yeager Two options:
- reinstall the tools;
- try to fix the PATH pointers to your node.js and npm folders or executables.
The second one worked for me. The VS Code Terminal can throw these kind of errors, while other Command tools may work OK.
All,
In the last 24 hours I upgraded the project to use Vue3 and Vite. I will be merging this code shortly. Once this is done all errors related to vue-cli are gone because it is abandoned for Vite and the superior create-vue command. I appreciate your work and patience.
On Tue, Feb 15, 2022 at 6:46 AM yuri-un @.***> wrote:
@dorian-yeager https://github.com/dorian-yeager Two options:
- reinstall the tools;
- try to fix the PATH pointers to your node.js and npm folders or executables.
The second one worked for me. The VS Code Terminal can throw these kind of errors, while other Command tools may work OK.
โ Reply to this email directly, view it on GitHub https://github.com/vuejs/vue-cli/issues/5690#issuecomment-1040231080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIU7VI7I2QTJQPTDAECTECDU3JDKLANCNFSM4O3BDOWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Unfortunately I still get these errors with a freshly installed Nodejs:
PS > npm i -g @vue/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated [email protected]: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
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 [email protected]: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
npm WARN deprecated [email protected]: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
And this is my warning. Does anyone have any updates?
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
Node: 18.16.1 Vue: 2.7.7
How do i solve this?
up to date in 396ms
PS C:\Users\swath\OneDrive\Desktop> npm i -g @vue/cli
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: The apollo-datasource
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: The apollo-server-errors
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server
package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: The apollo-server-plugin-base
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server
package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: The apollo-server-types
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/server
package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: The apollo-reporting-protobuf
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/usage-reporting-protobuf
package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: The apollo-server-env
package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the @apollo/utils.fetcher
package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
npm WARN deprecated [email protected]: The subscriptions-transport-ws
package is no longer maintained. We recommend you use graphql-ws
instead. For help migrating Apollo software to graphql-ws
, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using graphql-ws
, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
npm WARN deprecated [email protected]: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.