expo / create-react-native-app

Create React Native apps that run on iOS, Android, and web
BSD 3-Clause "New" or "Revised" License
13.27k stars 1.36k forks source link

Cannot execute create-react-native-ap #442

Closed eniniz closed 6 years ago

eniniz commented 6 years ago

Description

I'm trying to get started with react native, I followed the steps to generate myFirstApp using create-react-native-app.

Observed Behavior

when I executed here is what I get :

Using package manager as npm with npm interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

npm ERR! registry error parsing json
npm ERR! Unexpected token ▼ in JSON at position 0
npm ERR! ▼      ♥?[♂S?H↕?+?NU 9,K→=}I.♫q?? ?l??^???4?§d??<??u?$[6&►????B§ ?t?t?t
⌂?#?→??h72?H?????q????P?♫???;?t??rC?↔Kc?n?L?♠?↔ ???=??I0?8??Wy??{v?A☻d♫♂C??q?↕?N
?a?q?}??A?536I?O??e<?@?"?????8?I
npm ERR! BU♀?
npm ERR! ^??^↕?PA???!?3N&▼?9q??<?)?‼▬y????<♂? ???(??S~q▲'▲h??Q#↨♂??Ww+Sp♥???sNX?
NA??▬?-PC???n???y?♠Y?\????∟m?♦↓►???,??[-↑???♦???E??@?f?↔        ↓??,?qRs? %#?Fq↑
O☻♠b??♣(???e??B∟J??♦??D↕89(????,"{???8l'Oj?↑L?♂z??????p??.0s?,vM♦?&} 1~?%????*b♦
=Y?}AAg??d???? 1♂↕?♦?  →¶??I►§??(Ai§?N^?????
npm ERR! ?4a?∟♠.?R?w??G%w♀??q??\??I?$J[@?♦????O↨?`↕|j?S??h?a???k2?l?j???q_?tJ]?g
??(EL?\+?OA??O@^r!E?↓?3jQ??,/?ba)??♥;????"?¶?0?F1|??z♀§??I??▬d??W???☻0`???►w?▲⌂☺
???|↔∟ ?↔∟?????i/?:???h¶◄z§¶\♣+?,<?[UR??♦X???+ D??u0iD?}♣H?♣?¶l?<w? E?.;????‼p?B
?5
♥Z♥??<??-?{?gs??h??P?♫F?F
 ?U?K?j???;?C5Kg???▬?t????e??'1.*5.C?*  ♀?????
npm ERR! ????? ??c]??.Fj1W▲?f?;e???<☼?:`        ???Ç??M?*↑???♣? ?3,r?►p↕T%????Y?
r?>qY♠☻?`6?-??????¶?a(x?↓i&~?↔w?Z????UaWKH) ?&???P??????`??w??→p?.g?Np∟M\???p??
Ln??→??A?
npm ERR! PM?↓????X?=?{o??K?‼??  ↕g?T????? (???V☼??↕8?,"?av!??X-hTI↨♥9??o 1E?U?↓?
G??????X↕*↕♣?*U
?Q?k?OM?;??j.?♠??j?\?q?????B??u???????qs?oU8????q♣?⌂?◄W»r=?+w?~?w???w?pX??lz?i(L
x?~U????t??☼??*?????0ji?g?A?M??????+??↔????RK?,?X??{??d?????>????]+a|♣?5p??;??7(
??☻e??=??O?v?∟?.(IJMQ►↑$"♥?^R?X?tM3l8?i?|,K?*[?e(????)??/7§↓??"??§??"sWdnRdnPT??
N$??)??(??R?3??{?U∟??▼ P??\b???????????u????%FQ????e?14h>4}q????▬54↔?????"#?O?P?
q?¶2???_??I?↓????v??E↑KA?↕?9?↔?M???M??$,r??g♀????[??Xa$??RpQ=?n ve#??4?W
npm ERR! ?z☻.?x ?kz?? d∟?B)^?Y-??RO?OXR/??p??=?y?????♣?e| ♫∟
npm ERR! ♀9!?L`'??/???gy↕?8?3'?? ↔"? ??#&4?s?RF?eNNN??|∟??N)y♀??♦$|{?O?▲???►HZ?+
L▬????"?Ba??▬
npm ERR! ?$?BA=?$??+??? ?~ ????J☺?[♂‼↨?'⌂♀??Lop????u??9?(SNfl↕?d??      0?zH?`??
`?♠g?????I?|*♦?[y?◄?-?z????!?b?6???◄W?→]        ?Xwj9ts?↨
npm ERR! ?+?-?H‼?moU??aZ?↕?^??x?^?oySw^??????M?u#??bI??C{?↑?|▬d)9☺?'↨'"e8??♣◄♥?h
?b<??u?????k??.?►tR∟mo  ÷v??G."??↑x?i∟◄??4♫?¶?bX??l?↕??o?►??1e▬?,^B$q???&ege" A▲
???¶??0t?↕?'↨??@∟a??]?P?????s:o!u>?\V79I
npm ERR! ?♥_\????[C??Mq? ?@??☻$ ?♦]?{Z?c??C<0?????▬??!??V}??♦???↨v¶F|U♂B?¶?p8q??
]??v????▼?@??   )/??( ?Vt?u?K??wt?q??♫⌂????♠c_?↕??X??E??k??fE ?)v$↨??c↑8%? ?IE??
}RX|"¶?∟♥a???)?→q?
npm ERR! ??☻?1??s2b????► <l‼{???☼?`????=#???K?r?jb????▬?^vm?c▲t??v?▲?b_♀{♫?s♠??♥
????jH?})??☺♀!J?↓ ????e?`'?M??\??↨?(?`17?=♫??♂?-???Wv?♥(h↕q∟?e[??0?     ??i??!↑♣
↑??GB|! dd↕?h?♣9?‼p+?f???????▲?♫8(?R??j?q♦g?y?UP2??R8♫??R????w?m? ????]?u???9yT?
.??<B~?=!??n♣ib?♦?*??x?X?.YD?g????v?ZY[`Y2?(?▬y =??p)???}?‼m5??¶=↔`L\2??/¶-}???f
S?▲⌂
npm ERR! ???♂?k%3qf¶????|?? ?E??(?9<YMDh???B?:,??#H7???7???e???z?5?\????Q=???'x?
☼?V??/?↔???p??"?v??E↕L?↓?v▼►UV?&?1v??#*???3?‼qx?        T☻aw?4;►☼s?Y?♣>?↨_???>~?
 w♥?<????A?c?
npm ERR! @♦][?@??"O`►??k??EbL!A?♂2?Cl?↔?▼8ab??? ??∟8↕??▬v☺,??by??|?h5♣'∟&?
npm ERR! ?? g"?F{]2??↑??♀??7$?♠?????d??♀a`? ???♦?:G????<??wzC???'?7?∟?z??8z???A?
eg ♀}?☺yK???G?{?/♣[???~☼VY????qt?↔???}?Yo?7?U,??7:?♫?↕H ?}?}?=∟??▲J?i??K?{?g?]??
y?9??D%♠♦Y?[0i?3→?a?☺↑6<?▼?☺/♠?♥??▼???h?§:?♫???@??♫y??♣?♠?s?►??↔???H♫?♠↔????r???
{??E? ▼?@x♦?§♀►???►??▼????B9?▬"???☼???; ∟t??↨?{ -?????M6>`)rs??♀`Sjl??>☺♠??p?q??
????Y??qJ"§▼???H1??lk??????e↕]???D|?tIb?d??6?$??+?R
npm ERR! ?y?FV??V??P?$?↨1→☻?d???#?*]??lU$J??*#??§??↑↕5??D?H¶??X#UmS?☻]?Z???►????
b?E?bT$??♦?S)j[♣?L????☼|??⌂????~????H???E►???n??AW?y???H♥☼,B???E‼?????7?fl?`???`
?>|??N9t☺??%??  ~.W?%?♂k??BT:e??4H▬??▲&A???????S,???¶?????⌂☺S?↔-?B

npm ERR! A complete log of this run can be found in:

Environment

Also specify:

  1. Operating system: windows 7
anp commented 6 years ago

Hi! It looks like you have a corrupted npm installation. If you're able to install other npm packages, please post back and I'll reopen. If not, please try removing npm from your system and reinstalling.

eniniz commented 6 years ago

Thank you for responding. I uninstall node , then I install it. I also upgrade npm version to 5.5.1. But when I run create-react-native-app AwesomeProject here is what I get :

npm ERR! Unexpected token ▼ in JSON at position 0 while parsing near '▼ ♥?? Mo?6►???...' npm ERR! A complete log of this run can be found in: .....

eniniz commented 6 years ago

I also remove create-react-native-app from ....\AppData\Roaming\npm\node_modules but I'm getting the same result.

eniniz commented 6 years ago

Another important information is that I'm working behind a proxy, but I configure it to work normally, for instance I could run create-react-app and get started with it ....