How do i install Viro react correctly on windows 10?

578 Views Asked by At

I tried a few options.
Option 1 (site):

npm install -g react-native-cli react-viro-cli
react-viro init test_app
npm start

Error!

"." не является внутренней или внешней командой, исполняемой программой или пакетным файлом.
("." is not an internal or external command, executable program or batch file.)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prestart: `./node_modules/react-viro/bin/run_ngrok.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prestart 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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-03-03T17_11_44_092Z-debug.log

//package.json
"scripts": {
    "prestart": "./node_modules/react-viro/bin/run_ngrok.sh",
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
 },

Option 2 (site):

react-native init test_app --version=0.59.3
cd test_app && npm install -S -E react-viro
npm start
// Running port 8081.
// What's the next step? Ok, i installed ngrok
ngrok http 80 

I don't know what to do next. Please give a detailed installation plan to the completed sample on android.

0

There are 0 best solutions below