Posts

Showing posts with the label npm

unable to resolve dependency tree error for creating new angular project

5 2 so today I wanted to create new Angular project using the command ng new <projectname> and I got this error: npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: project-name@0.0.0 npm ERR! Found: jasmine-core@3.6.0 npm ERR! node_modules/jasmine-core npm ERR! dev jasmine-core@"~3.6.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0 npm ERR! node_modules/karma-jasmine-html-reporter npm ERR! dev karma-jasmine-html-reporter@"^1.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 a...

React Native Camera

Hey there! So, I'm testing React-Native and this problem have come up, and not sure what it wants. I have upgraded it, and also download latest versions. This is the error: npm WARN react-native-camera@0.6.0 requires a peer of react@>=15.4.0 but none was installed. It won't allow me to download it running the following command npm install react-native-camera --save Thanks for your time. Hey i had the same problem with react native camera First make sure the version is up to date.Either latest or next. Unless update it as npm install npm@latest -g Then reinstall camera again(No need to uninstall anything, because it is not installed yet) Here is the same issue that i opened in github now Closed because it solved the problem :) EDIT: i'm sure you got this error when you start to run npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save command right ? so it failed and never installed so...

react-native linking firestack error

I am trying to use firestack in my react-native application. I did: npm install react-native-firestack --save but then when I try to link: react-native link react-native-firestack I get the error: rnpm-install ERR! It seems something went wrong while linking. Error: spawn UNKNOWN Do you have any ideas why is this? As per my understanding try this: First use rnpm link react-native-firestack if it does not work then try this: You can remove these lines from package.json: "rnpm": { "commands": { "prelink": "node_modules/react-native-lock/bin/prepare.sh", "postlink": "node_modules/react-native-lock/bin/cocoapods.sh" } }

Accidentally uninstall react native

I accidentally uninstall react native on my project npm uninstall --save react-native map What i'm gonna do is uninstalling react-native-map, but i miss one '-' character. What should I do? you can reinstall it by npm install --save react-native@yourversionnumber

Cannot resolve 'react-native'

I am trying to import react-native module into my react app. When I start my app server using 'npm start', I get the following error : Module not found: Can't resolve 'react-native' I have done following steps: cleaned npm cache using 'npm cache verify' deleted node_modules rerun the command 'npm install' checked package.json file if it has react-native dependency listed Nothing worked for me. Please help!! Try to recreate your app using the react native CLI. Use the command npm install -g react-native-cli, then use react-native init ProjectName and after that try to run the project. If you cannot create a new app for any reason, try to install the react-native-cli anyway and try to run react-native run-android or react-native run-ios (depending on the plataform you want to use as a tester_ instead of npm start.

react-native init specify react version and react-native version

I basically want to init a react-native project with react@15.6.0 and react-native@0.45.0 because dependency problems. However react-native command only allows me to specify react-native version: react-native init sample --version react-native@0.45.0 This command not works: react-native init diskful --version react-native@0.45.0 --version react@15.6.0 This, too: react-native init diskful --version react-native@0.45.0 react@15.6.0 And this, too: react-native init diskful --version react@15.6.0 react-native@0.45.0 Install globally react@15.6.0 or react-native@0.45.0 does not affect. Please, someone help me! Create a project : react-native init MyNewApp --version 0.45.0 If you want do change version then try with this: npm install --save react-native@0.44.0 npm install --save react@16.0.0-alpha.6 delete node_modules folder Edit Package.json "dependencies": { "react": "15.6.0", "react-native": ...