All Questions
Tagged with react-native npm
1,385
questions
104votes
28answers
218kviews
npm install Error: rollbackFailedOptional
When I try npm install new packages it shows me this error:
rollbackFailedOptional: verb npm-session 585aaecfe5f9a82
node --version
8.4.0
npm --version
5.3.0
70votes
10answers
32kviews
React Native: npm link local dependency, unable to resolve module
I am developing a button ui package for react native. I try to build an example project to test this button. The directory structure is as follows:
my-button/
package.json
index.js
...
55votes
17answers
44kviews
React-Native: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template
While executing npx react-native init MyProject I ran into the following error:
✖ Installing CocoaPods dependencies (this may take a few minutes)
error Error: Failed to install CocoaPods dependencies ...
51votes
6answers
167kviews
Found 4 vulnerabilities on npm install
I am just getting started with react-native. On installing this package
npm install --save react-native-validator-form
https://github.com/NewOldMax/react-native-validator-form/issues/3
I was prompted ...
50votes
23answers
63kviews
React native run-android do not updating modified code
I am using React native 0.52.0 and react-native-cli 2.0.1 on my Windows PC for android development. Despite all the changes i have made. When I run react-native run-android, it builds successfully but ...
45votes
4answers
13kviews
Cannot find module 'asap/raw'
i have started a new react-native project and after that i installed react-native-maps i can't run react-native run-android because the terminal displays the following error:
module.js:550
throw ...
45votes
6answers
115kviews
How do I create a React Native project using Yarn?
I am running the following commands in the DOS console on a Windows 7 (64-bit) machine.
npm install -g yarn
yarn add global react-native
yarn add global react-native-cli
react-native init sample
...
44votes
12answers
18kviews
react native downloading javascript bundle 100% stuck
when I am trying to execute npm start it works fine, but when i try to run my application by expo the process goes till 100% and after that nothing happens. I am not getting what is exact issue over ...
40votes
5answers
16kviews
React Native: No propType for native prop RCTView.maxHeight
After upgrading to RN 0.30 I started seeing the error shown below even when building the simplest possible app:
react-native init AwesomeProject
react-native run-ios
The strangest is that ...
38votes
1answer
19kviews
Using npm modules in React Native projects
Is it possible to use npm modules with React Native projects directly, like one uses them within a React project by npm install <module-name>?
Of course I mean modules that can be used with a ...
37votes
6answers
53kviews
react-native, bundling failed
I am new to react-native and have found an error that makes absolutely no sense to me.
I am trying to include a calendar library: https://github.com/wix/react-native-calendars
I have included the ...
32votes
9answers
27kviews
Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile
I have updated node today and I'm getting this error:
error: TypeError: Cannot read properties of undefined (reading 'transformFile')
at Bundler.transformFile (/Users/.../node_modules/metro/src/...
28votes
3answers
21kviews
Error: jest-haste-map: Haste module naming collision:
I have created a custom npm module (will use xxx instead of its name) and link it manually using npm install.
I tried very hard and searched :
[Workarounds] Packager unable to resolve module from /...
27votes
2answers
45kviews
How to fix npm audit fix issues?
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Prototype Pollution │
├───────────────┼──────────────────────...
26votes
5answers
5kviews
Main module field cannot be resolved after installing @apollo/client
I'm running into an error after installing Apollo when trying to run my React Native Expo app. I've tried deleting node-modules and re-installing, resetting cache, restarting computer, and still no ...