I cloned a react native repository and I am getting the following errors when I perform npm install.
It seems like 2 packages have peer dependencies with the react-native package:
react-native-async-storage/async-storage#1.17.5
react-native-svg-icon#0.10.0
The package.json file has "react-native": "0.68.2", which seems to be compatible with what react-native-async-storage package needs (react-native#"^0.0.0-0 || 0.60 - 0.68 || 1000.0.0") and same with react-native-svg-icon#0.10.0 (react-native#"^0.64.0")
I tried --force and --legacy-peer-deps commands, some vulnerabilities are solved but same output for npm install.
Any suggestions?
When running npm install:
When running npm install --legacy-peer-deps:
When running npm install --force:
What eventually worked for me was to downgrade npm's version, in my case it was 8.3.1.
Related
installed latest vue/cli and created project using vue2.
After this, I added vuetify and thats all for additional to basic vue2 template list of packages.
When I have tryed to use 'npm install'
Found: #vue/cli-service#undefined
npm ERR! node_modules/#vue/cli-service
npm ERR! dev #vue/cli-service#"5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #vue/cli-service#"^3.0.0 || ^4.0.0 || ^5.0.0-0" from #vue/cli-plugin-babel#5.0.0
npm ERR! node_modules/#vue/cli-plugin-babel
npm ERR! dev #vue/cli-plugin-babel#"5.0.0" from the root project`
can you guys explain me meaning of error
myVersions
As you are seemingly on an old version of npm (<=6.x) you need to install the peer dependency yourself:
npm i -D #vue/cli-service#5.0.0
After installing the dependency, edit your package.json and insert this block on the top level, right after the "devDependencies" object:
"peerDependencies": {
"#vue/cli-service": "^5.0.0"
}
and remove that dependency from the "devDependencies" object.
If you don't want to deal with peer dependencies yourself, upgrade your node and npm version. To upgrade npm only:
npm i -g npm
Despite the fact that I reconfigured entire project. I will anyway answer this question.
Issue was related to cli-service 5.0.0, when I should have had 5.0.8 in order to use babel 5.0.0.
I want to add that if you use default vue.2 template with vue/cli 5.0.8,
You will get another error after installing vuetify, which was not able to fix.
Error is related to vuetify loader.
I fixed it with start up new project and manually inserting all dependencies compatible with vuetify-loader 1.5
Because 1.7 brakes npm run serve
I have existing project, I update my SDK Version from 41 to 44 by following these steps.
1)Update to the latest version of Expo CLI: npm i -g expo-cli. expo-cli#5.4.3 or greater is required.
2)Run expo upgrade in your project directory.
After that I run expo start but got this error
Unable to find expo in this project - have you run yarn / npm install yet?
Than I try to run npm install and getting this error
ERESOLVE unable to resolve dependency tree while installing a pacakge
[enter image description here][1]
I am using Mac
[1]: https://i.stack.imgur.com/D6hhN.png
When you updated your SDK, it looks like npm could not resolve the dependency: #react-native-community/masked-view
You can try to run: npm uninstall #react-native-community/masked-view and then re-try npm install.
What may make things easier is to just give your dependency tree a good ol' refresh.
Delete node_modules and package-lock.json
re-run npm install in the ROOT of your project.
Triple check you are in the correct spot when running these commands.
I am trying to build my Angular app on Gitlab CI, and install the dependencies with npm ci, but I encounter an error 'fsevents not accessible from rollup'. I tried npm ci --no-optional and still having this error. How do I fix this?
I have also got the same error with "#angular-devkit/build-angular": "0.1102.14". I have resolved this issue by upgrading npm from ver6 to ver7 with node ver 14
npm install -g npm
updated my angular 11 project dev dependencies to:
"#angular-builders/custom-webpack": "^11.1.1",
"#angular-devkit/build-angular": "^0.1102.13",
needed to install webpack and here we go..
How can I uninstall react-native-cli on Mac??
I tried npm uninstall react-native-cli and it gives me below.
npm WARN eslint-plugin-react#7.12.4 requires a peer of eslint#^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native#3.6.0 requires a peer of eslint#^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
I want to completely wipe-off my react native environment and re-install it. What should I do?
Uninstalling global packages
To uninstall an unscoped global package, on the command line, use the uninstall command with the -g flag. Include the scope if the package is scoped.
npm uninstall -g react-native-cli
If you need to completely remove react native environment you need to remove CLI
npm uninstall -g react-native-cli #react-native-community/cli
next, remove watchman
brew uninstall watchman
remove Android env:
How to completely uninstall Android Studio on Mac?
remove IOS env:
How to Completely Uninstall Xcode and Clear All Settings
I'm trying to add react-native-drawer to my project.
but when I run:
npm install --save react-native-drawer
I get:
├── UNMET PEER DEPENDENCY react-native#0.41.1
└── react-native-drawer#2.3.0
npm WARN rn-drawer#1.1.3 requires a peer of react-native#^0.4.0 but none was installed.
I tried several actions people recommended like erasing my node_modules directory, or upgrading npm to the latest, or trying to install this module in a different project, but nothing helped. I can hardly believe that what is being implied here is that I simply have a version of react-native too new for this module.
my react native version is:
react-native-cli: 1.3.0
react-native: 0.41.1
my npm version is: 4.3.0
thanks!
It looks like you accidentally installed rn-drawer on your
package.json.
Just run:
npm uninstall --save rn-drawer