<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>React Native on Laïla Atrmouh</title>
    <link>/en/tags/react-native/</link>
    <description>Recent content in React Native on Laïla Atrmouh</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Tue, 27 Feb 2018 17:14:15 +0000</lastBuildDate>
    <atom:link href="/en/tags/react-native/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Permission issue with npm while installing react-devtools</title>
      <link>/en/posts/2018/02/permission-issue-with-npm-while-installing-react-devtools/</link>
      <pubDate>Tue, 27 Feb 2018 17:14:15 +0000</pubDate>
      <guid>/en/posts/2018/02/permission-issue-with-npm-while-installing-react-devtools/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;👴 &lt;em&gt;Careful&lt;/em&gt; You&amp;rsquo;re reading an old article ! Some links might be broken and content may be outdated&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I had this error once while trying to install the npm package react-devtools.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;leiluspocus$ npm i -g react-devtools&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! path /usr/local/lib/node_modules&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! code EACCES&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! errno -13&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! syscall access&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! Error: EACCES: permission denied, access &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/usr/local/lib/node_modules&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR!  &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt; Error: EACCES: permission denied, access &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/usr/local/lib/node_modules&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR!   stack: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;Error: EACCES: permission denied, access \&amp;#39;&lt;/span&gt;/usr/local/lib/node_modules&lt;span style=&#34;color:#ae81ff&#34;&gt;\&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;npm ERR!   errno: -13,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;npm ERR!   code: &amp;#39;&lt;/span&gt;EACCES&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;npm ERR!   syscall: &amp;#39;&lt;/span&gt;access&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;npm ERR!   path: &amp;#39;&lt;/span&gt;/usr/local/lib/node_modules&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR!&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! Please try running this command again as root/Administrator.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR! A complete log of this run can be found in:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;npm ERR!     /Users/leiluspocus/.npm/_logs/2018-02-27T13_52_59_313Z-debug.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The issue was that I was previously installing npm packages using the root user.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Getting started with React Native</title>
      <link>/en/posts/2017/09/getting-started-with-react-native/</link>
      <pubDate>Sat, 02 Sep 2017 17:31:47 +0000</pubDate>
      <guid>/en/posts/2017/09/getting-started-with-react-native/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;👴 &lt;em&gt;Careful&lt;/em&gt; You&amp;rsquo;re reading an old article ! Some links might be broken and content may be outdated&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;It’s pretty impressive how we can simply set up a development environment without XCode using Expo.&lt;/p&gt;&#xA;&lt;p&gt;Make sure you’re using the right Node and NPM versions and double check that there are no missing packages while doing the npm install.&lt;/p&gt;&#xA;&lt;p&gt;I had to run these commands before running npm start on my app (created through create-react-native-app ):&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
