Using Nodajs To Create React App - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Using Nodajs To Create React App (1506 Views)
| Using Nodajs To Create React App by Bambillo(op): 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:Snap error and upload |
| Re: Using Nodajs To Create React App by Bambillo(op): 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 Nobody: 12:29pm On Apr 21, 2020 |
Try this https://stackoverflow.com/questions/55236936/how-can-i-solve-npm-err-error0909006cpem-in-node-js npm set registry http://registry.npmjs.org/ Then run create react app again |
| Re: Using Nodajs To Create React App by Bambillo(op): 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(op): 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(op): 6:35am On Apr 22, 2020 |
Ok. I will try the trick and get back. Thank you, bro. |
Ideal Time To Create And Install New React App And Its Packages? • Help I Have This Problem In My Create-react-app (ON- Save) • Creating A React App With Webpack & Babel From Scratch • 2 • 3 • 4
How To Design An Ios App: The Ultimate Guide And Tips For Successful Mobile App • Can Someone Help With This Python Problems • Discussion: What Is Your Opinion Of Mongodb