Why am i getting 'install peer dependencies' error when installing inertia.js within a vue.js project? - vue.js

I want to use inertia.js within a vue.js app, but getting an error when following the default setup instructions:
npm install #inertiajs/inertia #inertiajs/inertia-vue3
error:
#inertiajs/inertia-vue3#0.5.2 requires a peer of vue#^3.0.0 but none is installed. You must install peer dependencies yourself.
i've tried previous versions and installing vue separately, but still getting same error. what am i missing? thanks

for anyone that encountered the same warning message, run this command to install peer dependencies and fix the warning: npm install --save-dev "vue#^3.0.0"

Related

Unable to install 'node-red-contrib-tf-model' using NPM on windows10x64

I followed the tutorials below for the installation of the tensorflow model:
https://flows.nodered.org/node/node-red-contrib-tf-model
https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md
Steps taken:
I first installed the #tensorflow/tfjs-node inside Node-RED directly by running the following code:
C:\Users\username\.node-red\node_modules> npm install #tensorflow/tfjs-node#1.4.0
Ran npm install under C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install
Finally ran npm install node-red-contrib-tf-model in the same directory:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install node-red-contrib-tf-model
Error that occured:
npm WARN node-red-contrib-tf-model#0.1.11 requires a peer of #tensorflow/tfjs-node#^1.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN #tensorflow/tfjs-node#1.4.0 No license field.
I have installed the correct tfjs-node version, and so why does this error occur?
Edit: Tried installing the module straight from Node-RED itself and got the following
ERROR:The specified module could not be found.
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node
When I checked the above directory it turns out that I do have the 'tfjs_binding.node'.
What am I doing wrong here? Can someone please help me out.

React-native-fs peer dependency with RN?

npm WARN react-native-fs#2.16.6 requires a peer of react-native#^0.59.5 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-fs#2.16.6 requires a peer of react-native-windows#^0.57.2 but none is installed. You must install peer dependencies yourself.
When I run npm install these two warning appear. I know that I can solve the second by running npm install react-native-windows but I am not sure how to fix the first one.
I currently have react-native 0.63.3 running. If I try to downgrade to 0.59.5 I get a host of other issues.
Here on the react-native-fs npmjs instructions it lists that this version of reat-native-fs should be used for RN > 0.61 which only adds to my confusion as to why this isn't working.
I can provide any other files that may be of importance. Thank you for the help!
I did "npm install --save react-native-fs --legacy-peer-deps" and "react-native link react-native-fs"
And the module works fine for me.

npm cannot install some packages globally and locally?

I'm developing some JavaScript application with VSCode editor, and it says cannot find ESlint package. So i tried install it locally on app directory and globally, but both methods are failed. It gives following error(log file) and stops installation.
silly fetchPackageMetaData error for emoji-regex#^7.0.1 Unexpected end of JSON input while parsing near '...gex-7.0.1.tgz","fileC'
i tried to install package that causes the error and it also get failed, i cleared cache of npm with npm cache clean --force and re-install eslint package. And it worked.

i try to install library for vue project and return error

I tried to install & execute old vue project.
The problem is when I execute npm install there are many errors.
I dont know why, because some time ago the projects worked without errors:
error file : https://gist.github.com/scaltro/5f6b04c3c1fa192989ddbb1c8707e233
I'm no npm guru, but this line seems to tell you what to do?
warn file-loader#1.1.5 requires a peer of webpack#^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
Try with:
npm install file-loader#1.1.5

npm generator-ionic Install Requires yo#>=1.0.0

I'm trying to install generator-ionic, and I get the following fatal error:
EPEERINVALID generator-ionic#0.7.3 requires a peer of yo#>=1.0.0 but none was installed
I'm using node 0.12.17, npm 3.3.6, and yo 1.4.7, so I do not understand what isn't satisfied.
#chrysanhy I think I found the issue. I just downgraded my npm version to 2.7.4 and when I ran the command npm install generator-ionic-g the following message appeared:
npm WARN peerDependencies The peer dependency yo#>=1.0.0 included from generator-ionic will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly.
Now the ionic-generator is working fine on my machine. Hope this helps you and everyone who is facing the same problem.