Create-response-app not working

I react very recently (started a day ago). I created the create-response-app command line to create the application. Below is the order that I did

  • app-app-app-app-app-app
  • npm start

Now the application is running.

  • npm install youtube-api-search
  • npm start

Now i get this error

my-app@0.1.0 start / Users / shanmugharajk / Code / udemy / my-app launch response scripts

sh: response-scripts: command not found npm ERR! sh npm file ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! my-app@0.1.0 start: react-scripts startnpm ERR! spawn ENOENT npm ERR! npm ERR! Error starting my-app@0.1.0 script. npm ERR! This is probably not a problem with npm. There is probably an additional registration above.

This happens every time with any package that I try to install.

One time that I noticed when I run

  • npm install youtube-api-search or any file, it always removes any package. The message I receive when installing any package,

npm WARN registry https://registry.npmjs.org/ - ? npm WARN https://registry.npmjs.org/: ENOTFOUND: https://registry.npmjs.org/redux , : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm WARN registry https://registry.npmjs.org/ - . npm WARN gentlyRm /Users/shanmugharajk/Code/udemy/my -app/ node_modules/html-minifier/node_modules/.bin/uglifyjs /Users/shanmugharajk/ /udemy/-/node_modules/html- minifier/node_modules/-JS npm WARN gentlyRm /Users/shanmugharajk/Code/udemy/my -app/node_modules/espree/node_modules/.bin/acorn /Users/shanmugharajk/ /udemy/-/node_modules/Espree/node_modules/ npm WARN gentlyRm /Users/shanmugharajk/Code/udemy/my -app/node_modules/autoprefixer/node_modules/.bin/browserslist /Users/shanmugharajk/ /udemy/-/node_modules/autoprefixer/node_modules/browserslist npm package-lock.json. . + redux@3.7.1 3 , 1142 3 27.043s

. , .

+7
4

npm 5. .

npm 4 :

npm install -g npm@4

rm -rf node_modules
rm package-lock.json
npm install

. :

getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

+7

, npm, , create-react-app yarn.lock.

, , npm install, package.lock.json, . , , .

, , ,

  • ----
  • npm install
  • npm install -package -

  • ----
  • - -

.

+3

React :

 nodejs  
 npm

, ( , Ubuntu)

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

js:

npx create-react-app my-DemoApp

:

cd my-DemoApp

,

my-DemoApp
├── README.md
├── package.json
├── .gitignore
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── App.test.js
    ├── index.css
    ├── index.js
    ├── logo.svg
    └── serviceWorker.js

, -, :

npm install

: node_modules

:

npm start

And now you are done with the most basic setup, now the application is ready.

You can also add an additional library, which is required for the application on npm

0
source

try to configure the registry. Npm configuration. Setting up the registry " http://registry.npmjs.org/ "

0
source

All Articles