-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutliple warnings and deprecated dependencies on npm install vue/cli #5690
Comments
Why so many warning lol. See these warning when i use yarn . And this comes when i install other packages .
|
I have the same warnings. macOS version: Catalina 10.15.6
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: 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
> fsevents@1.2.13 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/protobufjs@1.0.5 postinstall /usr/local/lib/node_modules/@vue/cli/node_modules/@apollo/protobufjs
> node scripts/postinstall
> core-js@3.6.5 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/compiler-sfc@3.0.0-rc.5 requires a peer of vue@3.0.0-rc.5 but none is installed. You must install peer dependencies yourself.
+ @vue/cli@4.5.3
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
|
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 |
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 npm ERR! peer dep missing: vue@3.0.0, required by @vue/compiler-sfc@3.0.0 |
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.
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 npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142 npm WARN @vue/compiler-sfc@3.0.0 requires a peer of vue@3.0.0 but none is installed. You must install peer dependencies yourself. |
This vue cli is really weird. |
Hi all Had the same problem today too, but think I've managed to solve it. Currently running: 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
➜ / sudo npm install -g @vue/cli npm WARN @vue/compiler-sfc@3.0.0 requires a peer of vue@3.0.0 but none is installed. You must install peer dependencies yourself.
If not, as was the case for me I simply did:
|
Many warnings should be fixed with #5973. |
On windows 10 I first tried with However, using yarn instead of npm worked for me. Recently npm has release (https://www.npmjs.com/package/@vue/compiler-sfc) |
Similar problem on my side...
although i used
|
Hi all, |
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. |
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. |
Same here. |
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 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
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:
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 |
think you very much sir |
thank |
@dorian-yeager
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
<#5690 (comment)>,
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:
|
And this is my warning. Does anyone have any updates?
Node: 18.16.1 |
How do i solve this? up to date in 396ms |
Version
4.4.6
Reproduction link
https://github.com/oci-labs/rapid-stack/blob/master/vue_apps/vue_app/dockerfile
Environment info
Steps to reproduce
npm i -g @vue/cli
What is expected?
ok
What is actually happening?
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated @hapi/joi@15.1.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14 . Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: 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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I run into this bug when installing vue-cli
The text was updated successfully, but these errors were encountered: