I tried cmd, Powershell, cmd as administrator, powershell as administrator and nodejs command prompt.
None of them worked
I tried update kleur running
npm install -g kleur@latest
but when I run npm install at the project folder it says the same thing…
I belive problem is about dependencies… but when I run “npm install -g < package >@< version >” it returns that the package was installed. Then I try to run “npm install” at the project folder and it keeps saying that the dependencies were not found.
So I did this test
C:\Users\luisr\expo\teste>npm install -g react-native
npm WARN rm not removing C:\Users\luisr\AppData\Roaming\npm\react-native.cmd as it wasn’t installed by C:\Users\luisr\AppData\Roaming\npm\node_modules\react-native
npm WARN rm not removing C:\Users\luisr\AppData\Roaming\npm\react-native as it wasn’t installed by C:\Users\luisr\AppData\Roaming\npm\node_modules\react-native
C:\Users\luisr\AppData\Roaming\npm\react-native → C:\Users\luisr\AppData\Roaming\npm\node_modules\react-native\local-cli\wrong-react-native.js
npm WARN react-native@0.57.8 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\react-native\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
- react-native@0.57.8
updated 1 package in 73.798s
C:\Users\luisr\expo\teste>npm install -g react
- react@16.7.0
updated 2 packages in 1.443s
C:\Users\luisr\expo\teste>npm install -g react@16.6.3
- react@16.6.3
updated 2 packages in 1.609s
C:\Users\luisr\expo\teste>npm install -g react-native
C:\Users\luisr\AppData\Roaming\npm\react-native → C:\Users\luisr\AppData\Roaming\npm\node_modules\react-native\local-cli\wrong-react-native.js
npm WARN react-native@0.57.8 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\react-native\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
- react-native@0.57.8
updated 1 package in 35.417s
C:\Users\luisr\expo\teste>npm install -g react@16.6.3 react-native
C:\Users\luisr\AppData\Roaming\npm\react-native → C:\Users\luisr\AppData\Roaming\npm\node_modules\react-native\local-cli\wrong-react-native.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\react-native\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
- react@16.6.3
- react-native@0.57.8
updated 2 packages in 35.567s
C:\Users\luisr\expo\teste>
It seems to me that when I do “install -g package” it´s not installing a thing, since when I run “npm install -g react@16.6.3 react-native” in a single command, it installs ok…
but I could not do the same for “npm install”… after several tries, the list of packages was too long and still didn’t work.
C:\Users\luisr\expo\teste>npm install react@16.6.3 react-native expo-google-sign-in@2.0.0 react@16.0.0-alpha.6 create-react-context@0.2.2 react-native-gesture-handler@1.0.12 react-native-maps@0.22.1 react-native-reanimated@1.0.0-alpha.11 react-test-renderer@16.7.0 .
npm WARN react-native-maps@0.22.1 requires a peer of react@>= 16.0 || < 17.0 but none is installed. You must install peer dependencies yourself.
npm WARN expo-google-sign-in@2.0.0 requires a peer of react-native@^0.55.4 but none is installed. You must install peer dependencies yourself.
npm WARN create-react-context@0.2.2 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated@1.0.0-alpha.11 requires a peer of react-native@^0.44.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-maps@0.22.1 requires a peer of react@>= 16.0 || < 17.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-gesture-handler@1.0.12 requires a peer of react@> 15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-test-renderer@16.7.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native@0.57.8 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
- expo-google-sign-in@2.0.0
- create-react-context@0.2.2
- react-native-reanimated@1.0.0-alpha.11
- react-native-maps@0.22.1
- react-native-gesture-handler@1.0.12
- react-test-renderer@16.7.0
- react@16.6.3
- react@16.0.0-alpha.6
- react-native@0.57.8
added 1 package from 1 contributor, updated 8 packages, moved 1 package and audited 40835 packages in 133.155s
found 0 vulnerabilities
Any ideas?