Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,798,732 members, 6,687,790 topics. Date: Sunday, 23 January 2022 at 03:28 AM

Using Nodajs To Create React App - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Using Nodajs To Create React App (767 Views)

Help I Have This Problem In My Create-react-app (ON- Save) / Creating A React App With Webpack & Babel From Scratch / How Do You Deploy A React App (2) (3) (4)

(1) (Reply) (Go Down)

Using Nodajs To Create React App by Bambillo: 2:49pm On Apr 20, 2020
I am new to reactJS and I have been getting error while installing npm to create an app through command prompt interface.

When I type in: npx create-react-app weather-app

Instead of generating all packages to use, the following errors flag:

[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/react: error:0909006C:PEM routines:get_name:no start line".

Kindly help me debug this (by explaining how to avoid any error) as I remain stagnant despite imbued with ideas that can transform the techie world. Thanks as I await your significant respective responses.
Re: Using Nodajs To Create React App by afuye(m): 3:38pm On Apr 20, 2020
Bambillo:
I am new to reactJS and I have been getting error while installing npm to create an app through command prompt interface.

When I type in: npx create-react-app weather-app

Instead of generating all packages to use, the following errors flag:

[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/react: error:0909006C:PEM routines:get_name:no start line".

Kindly help me debug this (by explaining how to avoid any error) as I remain stagnant despite imbued with ideas that can transform the techie world. Thanks as I await your significant respective responses.

Snap error and upload
Re: Using Nodajs To Create React App by Bambillo: 10:27am On Apr 21, 2020
C:\Users\bamidele\Desktop\portfolio>npx create-react-app myportfolio

Creating a new React app in C:\Users\bamidele\Desktop\portfolio\myportfolio.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.4
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/react: error:0909006C:PEM routines:get_name:no start line".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\bamidele\\Desktop\\portfolio\\myportfolio\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
yarnpkg add --exact react react-dom react-scripts cra-template --cwd C:\Users\bamidele\Desktop\portfolio\myportfolio has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.
[b][/b]
Re: Using Nodajs To Create React App by onecoder: 12:29pm On Apr 21, 2020
Re: Using Nodajs To Create React App by Bambillo: 2:30pm On Apr 21, 2020
Tried this but no success.
Re: Using Nodajs To Create React App by afuye(m): 3:13pm On Apr 21, 2020
RUN THIS COMMAND ON WINDOW


del -rf node_modules package-lock.json && npm cache clean && npm install
Re: Using Nodajs To Create React App by Bambillo: 5:39pm On Apr 21, 2020
The line was entered and the same error flag as above repeated.
Re: Using Nodajs To Create React App by Taofeekdboy(m): 11:09pm On Apr 21, 2020
Have you tried changing the name of the app, like removing the hyphen and use underscore. From weather-app to weather_app
Re: Using Nodajs To Create React App by Bambillo: 6:35am On Apr 22, 2020
Ok. I will try the trick and get back. Thank you, bro.

(1) (Reply)

I Need Help On Delphi! Please Can Anyone Rescue Me! / Please Let Someone Help Me Out With My Outlook Programming / The Uk Or America: Which Is your IT-driven Dream Country?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2022 Oluwaseun Osewa. All rights reserved. See How To Advertise. 43
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.