Viro: npm start error

Created on 7 Jan 2019  路  12Comments  路  Source: viromedia/viro

hi , please help me

C:UsersKavIranviro>npm start

[email protected] prestart C:UsersKavIranviro
./node_modules/react-viro/bin/run_ngrok.sh

'.' is not recognized as an internal or external command,
operable 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:UsersKavIranAppDataRoamingnpm-cache_logs2019-01-07T19_11_55_005Z-debug.log

Most helpful comment

remove the line:

"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",

from your package.json

Hi ,
I am getting below error after removing that line from package.json. help me out in these.

error Invalid regular expression: /(.\__fixtures__\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\__tests__\.)$/: Unterminated character class. Run CLI with --verbose flag for more details.

All 12 comments

remove the line:

"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",

from your package.json

tnx , it's worked

You're welcome

Hey, I am getting exactly the same error but there is no

"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",

in my package.json file. Any other suggestions?

Found it.

I was looking at the package.json for React Viro rather than my project.

All working now!

Great @ajth789 !

Hi,

I'm facing the same problem and below is the error description

**(python3.6) D:AI_smart_MirrorMagicMirror>npm start

[email protected] start D:AI_smart_MirrorMagicMirror
sh run-start.sh

'sh' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersSONYAppDataRoamingnpm-cache_logs2019-04-09T11_39_47_8
10Z-debug.log**

I'm unable to find "ngrok.sh" line in package.json. Please let me know what I should do here to come out of this.

remove the line:

"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",

from your package.json

Hi ,
I am getting below error after removing that line from package.json. help me out in these.

error Invalid regular expression: /(.\__fixtures__\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\__tests__\.)$/: Unterminated character class. Run CLI with --verbose flag for more details.

remove the line:
"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",
from your package.json

Hi ,
I am getting below error after removing that line from package.json. help me out in these.

error Invalid regular expression: /(._*fixtures._|node_modules[]react[]dist[]._|websitenode_modules._|heapCapturebundle.js|._*tests._)$/: Unterminated character class. Run CLI with --verbose flag for more details.

I'm getting exactly the same error.

remove the line:

"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",

from your package.json

you cant just remove the code and make it work. That line is there for a reason!

remove the line:
"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",
from your package.json

Hi ,
I am getting below error after removing that line from package.json. help me out in these.

error Invalid regular expression: /(._*fixtures._|node_modules[]react[]dist[]._|websitenode_modules._|heapCapturebundle.js|._*tests._)$/: Unterminated character class. Run CLI with --verbose flag for more details.

Just find the blacklist.js file in metro-config>src>defaults(if present) node module or the metro node module and fix the regular expression with the following code:
var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];

remove the line:
"prestart": "./node_modules/react-viro/bin/run_ngrok.sh",
from your package.json

Hi ,
I am getting below error after removing that line from package.json. help me out in these.

error Invalid regular expression: /(._*fixtures._|node_modules[]react[]dist[]._|websitenode_modules._|heapCapturebundle.js|._*tests._)$/: Unterminated character class. Run CLI with --verbose flag for more details.

i got the same error ..
go to node_modulesmetro-configsrcdefaultsblacklist.jssharedblacklist
and change
var sharedBlacklist ...
to :

var sharedBlacklist = [
/node_modules[/\]react[/\]dist[/\]./,
/website/node_modules/.
/,
/heapCapture/bundle.js/,
/./__tests__/./
];

Was this page helpful?
0 / 5 - 0 ratings