Como instalar a dependência react-native-speedometer-chart utlizando o npx create-expo-app para criar o projeto [closed] - react-native

Closed. This question is not written in English. It is not currently accepting answers.
Stack Overflow is an English-only site. The author must be able to communicate in English to understand and engage with any comments and/or answers their question receives. Don't translate this post for the author; machine translations can be inaccurate, and even human translations can alter the intended meaning of the post.
Closed 2 days ago.
Improve this question
Criei o projeto utilizando o npx create-expo-app
Ao instalar a dependencia npm add react-native-speedometer-chart, apresenta erro:
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: testespeedometer#1.0.0
npm ERR! Found: react#18.1.0
npm ERR! node_modules/react
npm ERR! react#"18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"16.12.0" from react-native-speedometer-chart#0.7.5
Tentei definir uma versão para instalação do React mas não consegui

Related

Couldn't download a package using npm install because of a strange error

When I try to install a package name react-native-map I got this error from npm:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: styled-components#5.3.6
npm ERR! Found: react#18.1.0
npm ERR! node_modules/react
npm ERR! react#"18.1.0" from the root project
npm ERR! peer react#">=16.3.0" from #callstack/react-theme-provider#3.0.8
npm ERR! node_modules/#callstack/react-theme-provider
npm ERR! #callstack/react-theme-provider#"^3.0.8" from react-native-paper#5.1.3
npm ERR! node_modules/react-native-paper
npm ERR! react-native-paper#"^5.1.3" from the root project
npm ERR! 16 more (#react-navigation/bottom-tabs, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-dom#">= 16.8.0" from styled-components#5.3.6
npm ERR! node_modules/styled-components
npm ERR! styled-components#"^5.3.6" from the root project
npm ERR! peer styled-components#">= 2" from babel-plugin-styled-components#2.0.7
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! babel-plugin-styled-components#">= 1.12.0" from styled-components#5.3.6
npm ERR!
npm ERR! Conflicting peer dependency: react#18.2.0
npm ERR! node_modules/react
npm ERR! peer react#"^18.2.0" from react-dom#18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#">= 16.8.0" from styled-components#5.3.6
npm ERR! node_modules/styled-components
npm ERR! styled-components#"^5.3.6" from the root project
npm ERR! 1 more (babel-plugin-styled-components)
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 an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\rubyh\AppData\Local\npm-cache\_logs\2023-01-29T03_02_03_303Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rubyh\AppData\Local\npm-cache\_logs\2023-01-29T03_02_03_303Z-debug-0.log
my npm version: 9.4.0
react-native: 0.70.5
react: 18.1.0
this is just some random text to meet the requirement:
Mark Elliot Zuckerberg (/ˈzʌkərbɜːrɡ/; born May 14, 1984) is an American business magnate, internet entrepreneur, and philanthropist. He is known for co-founding the social media website Facebook and its parent company Meta Platforms (formerly Facebook, Inc.), of which he is the chairman, chief executive officer, and controlling shareholder.[1][2]
Zuckerberg attended Harvard University, where he launched Facebook in February 2004 with his roommates Eduardo Saverin, Andrew McCollum, Dustin Moskovitz, and Chris Hughes. Originally launched to select college campuses, the site expanded rapidly and eventually beyond colleges, reaching one billion users by 2012. Zuckerberg took the company public in May 2012 with majority shares. In 2007, at age 23, he became the world's youngest self-made billionaire. He has used his funds to organize multiple philanthropic endeavors, including the Chan Zuckerberg Initiative.

npm probleme to start project [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
when i do npm install i have this error in debian :
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! generator-jhipster#4.14.5 postinstall: opencollective postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the generator-jhipster#4.14.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/esp/.npm/_logs/2020-09-10T17_16_09_060Z-debug.log
You can try this
Delete node modules del node modules
then del package-lock.json
Now jus run again npm i
still not working then run npm cache clean --force
After Completion then you can run npm install and make sure that you are in admin mode.
like Run your project / Terminal as a Admin Mode
In Linux you can use sudo / sudo npm insatll

windows 10 - npm i #truffle/contract [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Can't install truffle contracts, see Error 1.
ERROR 1:
C:\Vote>npm i #truffle/contract
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/web3 js/WebSocket-Node.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\laure\AppData\Roaming\npm-cache_logs\2019-11-11T03_41_13_180Z-debug.log
I think Error 2, happens because I haven't installed truffle contract also Error 2 happens on a local web page.
ERROR 2:
Uncaught (in promise) ReferenceError: TruffleContract is not defined
at Object.loadContract (app.js:56)
at async Object.load (app.js:8)
The give away is this line in your error log:
npm ERR! enoent spawn git ENOENT
Basically, it means that the command git was not found and thus can not be executed.
Make sure you have installed git and added it to your environment PATH before running this install command again.

Why can't I install any gulp dependencies with npm? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
My computer crashed and now no install packages work at all.
This is what is shown in command line:
npm install --save-dev gulp-autoprefixer
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-c
li.js" "install" "--save-dev" "gulp-autoprefixer"
npm ERR! node v0.12.0
npm ERR! npm v2.10.1
npm ERR! file C:\Users\buddy\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token
npm ERR! File: C:\Users\buddy\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\buddy\Desktop\BuildTest\npm-debug.log
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
That tells you everything you need to know. You need to make sure your package.json is valid JSON.
I would suggest linting it, perhaps through http://jsonlint.com/.

packages not installing - "Error: tunneling socket could not be established" [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Debian squeeze (Internet connection running through Tor), nodejs built from the current source - the error has only just started occuring:
root#...# npm install coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm ERR! Error: tunneling socket could not be established, cause=socket hang up
npm ERR! at ClientRequest.onError (/usr/local/lib/node_modules/npm/node_modules/request/tunnel.js:161:17)
npm ERR! at ClientRequest.g (events.js:193:14)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:93:17)
npm ERR! at CleartextStream.socketErrorListener (http.js:1330:9)
npm ERR! at CleartextStream.EventEmitter.emit (events.js:93:17)
npm ERR! at SecurePair.exports.connect.cleartext._controlReleased (tls.js:1298:15)
npm ERR! at SecurePair.EventEmitter.emit (events.js:93:17)
npm ERR! at SecurePair.error (tls.js:952:10)
npm ERR! at EncryptedStream.CryptoStream._done (tls.js:432:17)
npm ERR! at EncryptedStream.CryptoStream._pull (tls.js:577:12)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.2.0-3-486
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "coffee-script"
npm ERR! cwd /home/...
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ECONNRESET
npm ERR!
...
npm ERR! not ok code 0
Iceweasel is also showing an invalid security certificate error for https://registry.npmjs.org/coffee-script.
Anyone any idea what is missing here? (It has occured in the past, fixed itself though for some odd reason.)
Tried setting ca and strict-ssl config options (null and false resp.), didn't work, however setting the registry config option to http://registry.npmjs.org/ and packages are installing again - should this be an ssl domain then?