<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eke Chinedu Kenechukwu</title>
    <description>The latest articles on DEV Community by Eke Chinedu Kenechukwu (@chayyccee).</description>
    <link>https://dev.to/chayyccee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F563284%2Fae766712-fb19-42c3-aacc-793f0991e1a1.jpeg</url>
      <title>DEV Community: Eke Chinedu Kenechukwu</title>
      <link>https://dev.to/chayyccee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chayyccee"/>
    <language>en</language>
    <item>
      <title>‘expo’ is not recognized as an internal or external command</title>
      <dc:creator>Eke Chinedu Kenechukwu</dc:creator>
      <pubDate>Sat, 26 Feb 2022 19:49:09 +0000</pubDate>
      <link>https://dev.to/chayyccee/expo-is-not-recognized-as-an-internal-or-external-command-350p</link>
      <guid>https://dev.to/chayyccee/expo-is-not-recognized-as-an-internal-or-external-command-350p</guid>
      <description>&lt;p&gt;So you just installed expo globally on your windows 10, using&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install -global expo-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After which you tried to be sure expo is installed and you tried&lt;br&gt;
&lt;code&gt;expo --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;but you get this error below&lt;br&gt;
&lt;em&gt;'expo' is not recognized as an internal or external command&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Don't panic, to solve this, simply run the command below on cmd (as an administrator)&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;setx path "%path%;C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Roaming\npm&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Thereafter, You should see the following&lt;/p&gt;

&lt;p&gt;&lt;code&gt;WARNING: The data being saved is truncated to 1024 characters.&lt;br&gt;
SUCCESS: Specified value was saved.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;that let's you know you were successful.&lt;/p&gt;

&lt;p&gt;Now run&lt;br&gt;
&lt;code&gt;expo --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;you should now see the version of expo installed, and that you can now use the expo command.&lt;/p&gt;

&lt;p&gt;But if that doesn't work,&lt;br&gt;
That means you will need to manually add the path to your machine's Environment Variables.&lt;br&gt;
At the time of this article,&lt;/p&gt;

&lt;p&gt;I'm using&lt;br&gt;
&lt;br&gt;
 &lt;br&gt;
&lt;code&gt;npm version 8.5.2&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;node version 16.14.0&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;which are the latest versions and have corepack enabled in node, this helps me to easily update yarn. To enable corepack, simply run&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;corepack enable&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Now, after the update to the latest stable/LTS versions of npm and node, &lt;br&gt;
go to windows search, search for &lt;code&gt;edit the system variables&lt;/code&gt; , enter the option&lt;br&gt;
select &lt;code&gt;Environment Variables&lt;/code&gt; (located at the bottom of the box)&lt;br&gt;
under &lt;code&gt;system variables&lt;/code&gt;&lt;br&gt;
scroll and select &lt;code&gt;Path&lt;/code&gt; and click on &lt;code&gt;Edit&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE: PLEASE DO NOT CLICK THE "NEW" BUTTON UNLESS YOU KNOW WHAT YOU ARE DOING, BECAUSE ANY CHANGE, WILL WIPE OUT EXISTING PATHS.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;after clicking on &lt;code&gt;Edit&lt;/code&gt;, select &lt;code&gt;New&lt;/code&gt; and then add the npm path to the list.&lt;br&gt;
usually, the npm package is saved in &lt;br&gt;
&lt;code&gt;C:\Users\&amp;lt;your computer username&amp;gt;\AppData\Roaming\npm&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;after adding that path,&lt;br&gt;
click "ok" on all boxes, close your terminal, reopen your terminal,&lt;br&gt;
run expo installation again.&lt;br&gt;
&lt;code&gt;npm install -global expo-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;after that, your can check if it successfully installed using&lt;br&gt;
&lt;code&gt;expo --version&lt;/code&gt;&lt;br&gt;
&lt;code&gt;expo-cli --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;At the time of this article, &lt;code&gt;expo&lt;/code&gt; and &lt;code&gt;expo-cli&lt;/code&gt; is at version &lt;code&gt;5.2.0&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I hope this was helpful. Feel free to reach out if your installation challenge persists.&lt;/p&gt;

&lt;p&gt;Happy Hacking…&lt;/p&gt;

</description>
      <category>npm</category>
      <category>node</category>
      <category>reactnative</category>
      <category>expo</category>
    </item>
    <item>
      <title>How to Customize Ant.design UI Library Variables.</title>
      <dc:creator>Eke Chinedu Kenechukwu</dc:creator>
      <pubDate>Thu, 21 Jan 2021 00:29:50 +0000</pubDate>
      <link>https://dev.to/chayyccee/how-to-customize-ant-design-ui-library-variables-1pop</link>
      <guid>https://dev.to/chayyccee/how-to-customize-ant-design-ui-library-variables-1pop</guid>
      <description>&lt;p&gt;This post seeks to give the reader a straightforward fix to customizing the ant.design UI library for react, style variables.&lt;/p&gt;

&lt;p&gt;I will like to be as brief as possible, so I will assume you have basic programming knowledge, Webpack, babel, Command line terminal, npm, HTML, CSS, Less and Javascript knowledge, ES6 syntax, React and are familiar with object oriented programming.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ant.design/" rel="noopener noreferrer"&gt;Ant Design&lt;/a&gt; is a UI library for react developed by Alibaba. It’s really nice and useful in making your react project solid and saves us time. To configure &lt;a href="https://ant.design/" rel="noopener noreferrer"&gt;Ant Design&lt;/a&gt;, you need to know that the library makes use of less, and therefore, overrides will be done using a less file.&lt;/p&gt;

&lt;p&gt;No need to journey far and change your css style sheets from &lt;code&gt;.css&lt;/code&gt; to &lt;code&gt;.less&lt;/code&gt;, then the &lt;code&gt;lessc&lt;/code&gt; command and all that lengthy work which if not careful, can break something and create extra work.&lt;/p&gt;

&lt;p&gt;To get started, create a &lt;code&gt;.less&lt;/code&gt; file in the root directory of your project, call it say &lt;code&gt;theme.less&lt;/code&gt; (for this demonstration), write the variable you wish to override in the &lt;code&gt;theme.less&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;A full list of Ant.design variables can be found &lt;a href="https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less" rel="noopener noreferrer"&gt;here&lt;/a&gt;. Careful now, ant design variables are inter-dependent, so changing one variable’s value can alter the presentation of other components.&lt;/p&gt;

&lt;p&gt;A good example is, if you alter the font-size base, to say 3vh, your fonts will look bigger and better, but your search box will get messed up quick.&lt;br&gt;
So for simplicity and to make sure this works, simply just write a new primary color in the &lt;code&gt;theme.less&lt;/code&gt; file, use say &lt;code&gt;#ff66cc&lt;/code&gt; to make things obvious.&lt;/p&gt;

&lt;p&gt;Then go to your &lt;code&gt;cmd&lt;/code&gt;, &lt;code&gt;cd to your project’s directory&lt;/code&gt;, &lt;code&gt;install babel-import-plugin&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install — save-dev babel-import-plugin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then go to your &lt;code&gt;.babelrc&lt;/code&gt; file to add the plugin.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;“plugins”: [[“import”, {“libraryName”: “antd”, “libraryDirectory”: “es”, “style”: true}]]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This plugin aids override the defaults.&lt;/p&gt;

&lt;p&gt;After those steps, go to your common config file and tell webpack how to handle less files and specify a hack for it.&lt;br&gt;
Make sure you have &lt;code&gt;less&lt;/code&gt; and &lt;code&gt;less loader&lt;/code&gt; already installed. Now in your common config, specify how webpack should less file.&lt;br&gt;
(see the  image below)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpe3zle3gmv4c60hcxs1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpe3zle3gmv4c60hcxs1a.png" alt="in common config file"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save and move on.&lt;/p&gt;

&lt;p&gt;Here on,&lt;br&gt;
any ant.design component you import into your project will now display the new #ff66cc primary color.&lt;/p&gt;

&lt;p&gt;I hope this was helpful.&lt;/p&gt;

&lt;p&gt;Kindly follow me on twitter.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>babel</category>
      <category>antdesign</category>
    </item>
    <item>
      <title>Git for Interns</title>
      <dc:creator>Eke Chinedu Kenechukwu</dc:creator>
      <pubDate>Wed, 20 Jan 2021 00:27:40 +0000</pubDate>
      <link>https://dev.to/chayyccee/git-for-interns-3jao</link>
      <guid>https://dev.to/chayyccee/git-for-interns-3jao</guid>
      <description>&lt;p&gt;Landing your first real tech job more especially as an intern can be exciting and daunting at the same time.&lt;br&gt;
The feeling of excitement quickly turns to some chilly nervousness that would be felt in your spine, when the Senior dev grants you access to the project repo and assigns to you your first task.&lt;/p&gt;

&lt;p&gt;This is because you are finally stepping out of the tutorials world to earth where real problems need to be solved, new features need to be added to a project, and bugs need to be fixed. In an instance, you realize you only know &lt;code&gt;git clone “https”&lt;/code&gt; and really don’t have the faintest idea of what cloning using SSH is about and you might soon drop dead…lol&lt;/p&gt;

&lt;p&gt;Well, don’t fake your death yet,&lt;br&gt;
I’ll help you get a good grasp of what you should know about git for a start, best practice and subsequently, other parts you’d learn from experience.&lt;/p&gt;

&lt;p&gt;So I beg you before you enter the world famous&lt;br&gt;
&lt;code&gt;git clone “https”&lt;/code&gt;&lt;br&gt;
Please introduce yourself to git. Configure your git so that it recognizes you and this makes authentication on Github, Bitbucket, Gitlab etc. A lot straight forward.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.name "your name" //this tells git your name
git config --global user.email your email //this tells git your email
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One important thing about &lt;code&gt;git config&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;git config has &lt;code&gt;--local&lt;/code&gt;, &lt;code&gt;--global&lt;/code&gt; and &lt;code&gt;--system&lt;/code&gt; levels and corresponding files.&lt;br&gt;
So you may use &lt;code&gt;git config --local&lt;/code&gt;, &lt;code&gt;git config --global&lt;/code&gt; and &lt;code&gt;git config --system&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;By default, &lt;code&gt;git config&lt;/code&gt; will write to a local level if no configuration option is passed. Local configuration values are stored in a file that can be found in the repository's &lt;code&gt;.git&lt;/code&gt; directory: &lt;code&gt;.git/config&lt;/code&gt;&lt;br&gt;
Global level configuration is user-specific, meaning it is applied to an operating system user. Global configuration values are stored in a file that is located in a user’s home directory. &lt;code&gt;~/.gitconfig&lt;/code&gt; on Unix systems and &lt;code&gt;C:\Users\&amp;lt;username&amp;gt;\.gitconfig&lt;/code&gt; on Windows.&lt;br&gt;
System-level configuration is applied across an entire machine. This covers all users on an operating system and all repositories. The system level configuration file lives in a &lt;code&gt;gitconfig&lt;/code&gt; file off the system root path. &lt;code&gt;$(prefix)/etc/gitconfig&lt;/code&gt; on Linux systems. On Windows this file can be found in &lt;code&gt;C:\ProgramData\Git\config&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To view global values, you can use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global --list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you will be creating a repo, you use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or you can&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone “https”
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;a working repository.&lt;/p&gt;

&lt;p&gt;Usually after cloning a working repository, you enter&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to download node modules.&lt;/p&gt;

&lt;p&gt;First, checkout out from the working repository you cloned. This means creating a new local branch out from the cloned branch(best practice). use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout -b branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-b&lt;/code&gt; signifies new branch. Ask the Senior dev the way he’d like you to name your branch names. You can be asked to label branch name with prefix “&lt;code&gt;feat&lt;/code&gt;” for feature “&lt;code&gt;fix&lt;/code&gt;” for a fix to flag the content of the branch before it’s merged. An example, you can find branch names like &lt;code&gt;feat/footer&lt;/code&gt; — means this branch is about the creation of a footer feature to the project. one branch per fix or feature(best practice).&lt;/p&gt;

&lt;p&gt;Now when you have finished a fix or feature on a branch and want to open another new branch, to add a fix or feature, please checkout(switch) to the branch you initially cloned and create a new branch from there to avoid git reference and index issues(trust me, you don’t want this headache) in the long run. use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;— notice there’s no &lt;code&gt;-b&lt;/code&gt;. This is because you are not creating a new branch, but you are switching to an existing branch. &lt;/p&gt;

&lt;p&gt;To see a list of all your branches and the current branch you are on, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Soon after, you run the dev server and start making saved uncommitted changes, now you have to commit those changes at some point in the branch work flow, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "meaningful Commit message"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or better still, so you don’t embarrass us and for us to still be friends, kindly go to the source control section in vs code(yea, I assume you use vs code, that’s what I use) and use the commit button, enter a meaningful commit message in the input box(best practice).&lt;/p&gt;

&lt;p&gt;So after adding commits, you want to push your code for merge right? use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push origin branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or better still use the vs code  button, click on origin”https”link and you are done. Then go to the project repo and open a merge request.&lt;/p&gt;

&lt;p&gt;To push all your branches to remote repo, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push --all origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To merge a different branch in your active working branch, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git merge branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To update your local branch from remote repo, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git pull origin branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To delete git branch locally, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch -d branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch -D branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-d&lt;/code&gt; option will delete the branch only if it has already been &lt;br&gt;
pushed and merged with the remote branch. Use &lt;code&gt;-D&lt;/code&gt; instead if you want to force the branch to be deleted, even if it hasn't been pushed or merged yet.&lt;/p&gt;

&lt;p&gt;To delete a branch remotely, use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push &amp;lt;remote&amp;gt; --delete branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use this shorter command,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push &amp;lt;remote&amp;gt; :branchname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get the error below, it may mean that someone else has already deleted the branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: unable to push to unqualified destination: remoteBranchName The destination refspec neither matches an existing ref on the remote nor begins with refs/, and we are unable to guess a prefix based on the source ref. error: failed to push some refs to 'git@repository_name'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Try to synchronize your branch list using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git fetch -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-p&lt;/code&gt; flag means "prune". After fetching, branches which no longer exist on the remote will be deleted.&lt;/p&gt;

&lt;p&gt;I do hope this was useful to someone out there.&lt;/p&gt;

&lt;p&gt;Feel free to connect with me on &lt;br&gt;
&lt;a href="https://twitter.com/official_eke"&gt;Twitter&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/chinedu-eke-7618b1153/e"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>gitlab</category>
      <category>bitbucket</category>
    </item>
  </channel>
</rss>
