create-react-app Failing to create a new React app in windows 10 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Got error running existing react js appcreate-react-app not workingcreate-react-app can not run after install a moduleMacbook React Native installI am installing “material-ui-icons” using command npm i -S material-ui-icons but getting error as followI want to upgrade material-ui from version “0.20.0” to “v1.0.0-beta.26” using command “npm install --save material-ui@next”Got an error while executing “create-react-app my-app”How to install react-native?having problems running these command VS code to create a react appHow can I debug the “Process exited with non-zero code: 4294963248” bug?

How do I find out the mythology and history of my Fortress?

macOS: Name for app shortcut screen found by pinching with thumb and three fingers

Lagrange four-squares theorem --- deterministic complexity

The Nth Gryphon Number

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

Significance of Cersei's obsession with elephants?

Tannaka duality for semisimple groups

What to do with repeated rejections for phd position

What's the point of the test set?

How to report t statistic from R

How does the math work when buying airline miles?

Project Euler #1 in C++

AppleTVs create a chatty alternate WiFi network

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

Why are my pictures showing a dark band on one edge?

Why can't I install Tomboy in Ubuntu Mate 19.04?

How often does castling occur in grandmaster games?

How many morphisms from 1 to 1+1 can there be?

Crossing US/Canada Border for less than 24 hours

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

Deconstruction is ambiguous

What is the meaning of 'breadth' in breadth first search?

Time evolution of a Gaussian wave packet, why convert to k-space?



create-react-app Failing to create a new React app in windows 10



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Got error running existing react js appcreate-react-app not workingcreate-react-app can not run after install a moduleMacbook React Native installI am installing “material-ui-icons” using command npm i -S material-ui-icons but getting error as followI want to upgrade material-ui from version “0.20.0” to “v1.0.0-beta.26” using command “npm install --save material-ui@next”Got an error while executing “create-react-app my-app”How to install react-native?having problems running these command VS code to create a react appHow can I debug the “Process exited with non-zero code: 4294963248” bug?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








4















I have Create-react-app version 1.4.3 instlalled. When I try to create a new App , I get the following messages in the command prompt. Please help me find and fix the issue.



C:UsersGSI-KOLDesktopserver>create-react-app client



Creating a new React app in C:UsersGSI-KOLDesktopserverclient.



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




uglifyjs-webpack-plugin@0.4.6 postinstall C:UsersGSI-KOLDesktopserverclientnode_modulesuglifyjs-webpack-plugin
node lib/post_install.js




npm ERR! path C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, lstat 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lstat',
npm ERR! path: 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersGSI-KOLAppDataRoamingnpm-cache_logs2017-11-08T13_08_03_705Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting client / from C:UsersGSI-KOLDesktopserver
Done.

C:UsersGSI-KOLDesktopserver>









share|improve this question






























    4















    I have Create-react-app version 1.4.3 instlalled. When I try to create a new App , I get the following messages in the command prompt. Please help me find and fix the issue.



    C:UsersGSI-KOLDesktopserver>create-react-app client



    Creating a new React app in C:UsersGSI-KOLDesktopserverclient.



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




    uglifyjs-webpack-plugin@0.4.6 postinstall C:UsersGSI-KOLDesktopserverclientnode_modulesuglifyjs-webpack-plugin
    node lib/post_install.js




    npm ERR! path C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules
    npm ERR! code EPERM
    npm ERR! errno -4048
    npm ERR! syscall lstat
    npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
    npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
    npm ERR! stack: 'Error: EPERM: operation not permitted, lstat 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'',
    npm ERR! errno: -4048,
    npm ERR! code: 'EPERM',
    npm ERR! syscall: 'lstat',
    npm ERR! path: 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'
    npm ERR!
    npm ERR! Please try running this command again as root/Administrator.

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:UsersGSI-KOLAppDataRoamingnpm-cache_logs2017-11-08T13_08_03_705Z-debug.log

    Aborting installation.
    npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

    Deleting generated file... node_modules
    Deleting generated file... package.json
    Deleting client / from C:UsersGSI-KOLDesktopserver
    Done.

    C:UsersGSI-KOLDesktopserver>









    share|improve this question


























      4












      4








      4


      1






      I have Create-react-app version 1.4.3 instlalled. When I try to create a new App , I get the following messages in the command prompt. Please help me find and fix the issue.



      C:UsersGSI-KOLDesktopserver>create-react-app client



      Creating a new React app in C:UsersGSI-KOLDesktopserverclient.



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




      uglifyjs-webpack-plugin@0.4.6 postinstall C:UsersGSI-KOLDesktopserverclientnode_modulesuglifyjs-webpack-plugin
      node lib/post_install.js




      npm ERR! path C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules
      npm ERR! code EPERM
      npm ERR! errno -4048
      npm ERR! syscall lstat
      npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
      npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
      npm ERR! stack: 'Error: EPERM: operation not permitted, lstat 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'',
      npm ERR! errno: -4048,
      npm ERR! code: 'EPERM',
      npm ERR! syscall: 'lstat',
      npm ERR! path: 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'
      npm ERR!
      npm ERR! Please try running this command again as root/Administrator.

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:UsersGSI-KOLAppDataRoamingnpm-cache_logs2017-11-08T13_08_03_705Z-debug.log

      Aborting installation.
      npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

      Deleting generated file... node_modules
      Deleting generated file... package.json
      Deleting client / from C:UsersGSI-KOLDesktopserver
      Done.

      C:UsersGSI-KOLDesktopserver>









      share|improve this question
















      I have Create-react-app version 1.4.3 instlalled. When I try to create a new App , I get the following messages in the command prompt. Please help me find and fix the issue.



      C:UsersGSI-KOLDesktopserver>create-react-app client



      Creating a new React app in C:UsersGSI-KOLDesktopserverclient.



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




      uglifyjs-webpack-plugin@0.4.6 postinstall C:UsersGSI-KOLDesktopserverclientnode_modulesuglifyjs-webpack-plugin
      node lib/post_install.js




      npm ERR! path C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules
      npm ERR! code EPERM
      npm ERR! errno -4048
      npm ERR! syscall lstat
      npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
      npm ERR! Error: EPERM: operation not permitted, lstat 'C:UsersGSI-KOLDesktopserverclientnode_modulesfseventsnode_modules'
      npm ERR! stack: 'Error: EPERM: operation not permitted, lstat 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'',
      npm ERR! errno: -4048,
      npm ERR! code: 'EPERM',
      npm ERR! syscall: 'lstat',
      npm ERR! path: 'C:\Users\GSI-KOL\Desktop\server\client\node_modules\fsevents\node_modules'
      npm ERR!
      npm ERR! Please try running this command again as root/Administrator.

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:UsersGSI-KOLAppDataRoamingnpm-cache_logs2017-11-08T13_08_03_705Z-debug.log

      Aborting installation.
      npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

      Deleting generated file... node_modules
      Deleting generated file... package.json
      Deleting client / from C:UsersGSI-KOLDesktopserver
      Done.

      C:UsersGSI-KOLDesktopserver>






      reactjs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 8 '17 at 13:31









      YanetP1988

      77711226




      77711226










      asked Nov 8 '17 at 13:14









      Sanat PSanat P

      212




      212






















          7 Answers
          7






          active

          oldest

          votes


















          3














          It looks like you need admin privileges to write some of the generated files. Can you create a terminal instance with administrator rights then reissue the command?






          share|improve this answer






























            2














            You probably had "create-react-app" running before, which was the problem in my case anyway. The way I solved this was using
            npm cache clean --force and ran create-react-app my-app again.






            share|improve this answer






























              1














              I was faced this same problem . It is due to the issue with npm .



              please run the following command in command Line



              npm cache clean --force


              then run



              create-react-app <project Name>


              If your problem still exist then switch from npm to yarn



              run the following commands, it solved my problem



              npm install -g yarn

              yarn global add create-react-app

              create-react-app <projectname>





              share|improve this answer






























                0














                For me, i wasn't connected to the internet when i tried to run 'create-react-app', so i connected and tried it, it worked, i'm guessing it needed to install some packages from the internet.






                share|improve this answer






























                  0














                  I suspect npm has an issue. However, this was how I was able to resolve it



                  follow this steps, i assure you, you will get it resolved. It worked for me



                  1. npm install -g yarn


                  2. yarn global add create-react-app


                  3. create-react-app






                  share|improve this answer






























                    -1














                    This was my error:



                    3695 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\****\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
                    3696 verbose node v6.10.3
                    3697 verbose npm v6.4.1
                    3698 error code Z_BUF_ERROR
                    3699 error errno -5
                    3700 error zlib: unexpected end of file


                    This solved the issue:



                    npm cache clean --force and ran create-react-app my-app





                    share|improve this answer

























                    • thanks stackoverflow.com/users/2227743/moritz

                      – Venkat Gupta
                      Oct 30 '18 at 11:39


















                    -1














                    Creating a new React app in C:UsersCMDownloadsreactgithub-profile.
                    Installing packages. This might take a couple of minutes.
                    Installing react, react-dom, and react-scripts...

                    npm ERR! path C:UsersCMAppDataRoamingnpm-cache_cacachecontent-

                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335b1
                    0893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806

                    npm ERR! code EPERM
                    npm ERR! errno -4048
                    npm ERR! syscall lstat
                    npm ERR! Error: EPERM: operation not permitted, lstat
                    'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                    b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6
                    5545008a3cad93d00f806'
                    npm ERR! { [Error: EPERM: operation not permitted, lstat
                    'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1f
                    a335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6554500
                    8a3cad93d00f806']

                    npm ERR! cause:
                    npm ERR! Error: EPERM: operation not permitted, lstat
                    'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1
                    fa335b10893d67f7339e4
                    af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806'
                    npm ERR! errno: -4048,
                    npm ERR! code: 'EPERM',
                    npm ERR! syscall: 'lstat',
                    npm ERR! path:
                    npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-


                    npm ERR! stack:
                    npm ERR! 'Error: EPERM: operation not permitted, lstat
                    'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                    b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015
                    eec65545008a3cad93d00f806'',
                    npm ERR! errno: -4048,
                    npm ERR! code: 'EPERM',
                    npm ERR! syscall: 'lstat',
                    npm ERR! path:
                    npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                    v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335
                    b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93
                    d00f806',
                    npm ERR! parent: 'postcss-image-set-function'
                    npm ERR!
                    npm ERR! The operation was rejected by your operating system.
                    npm ERR! It's possible that the file was already in use (by a
                    text editor or antivirus),
                    npm ERR! or that you lack permissions to access it.
                    npm ERR!
                    npm ERR! If you believe this might be a permissions issue, please double-
                    check thenpm ERR! permissions of the file and its containing directories, or
                    try running

                    npm ERR! the command again as root/Administrator (though this is not
                    recommended).
                    npm ERR! A complete log of this run can be found in:
                    npm ERR! C:UsersCMAppDataRoamingnpm-cache_logs2019-03-22T10_
                    27_19_722Z-debug.log


                    Aborting installation.
                    npm install --save --save-exact --loglevel error react react-dom react-
                    scripts has failed.

                    Deleting generated file... node_modules
                    Deleting generated file... package.json
                    Deleting github-profile/ from C:UsersCMDownloadsreactDone.``


                    i was facing similar error but i tried to run create-react-app command many times and finally it was created , this was the problem with my internet connection. check your inernet connection






                    share|improve this answer























                      Your Answer






                      StackExchange.ifUsing("editor", function ()
                      StackExchange.using("externalEditor", function ()
                      StackExchange.using("snippets", function ()
                      StackExchange.snippets.init();
                      );
                      );
                      , "code-snippets");

                      StackExchange.ready(function()
                      var channelOptions =
                      tags: "".split(" "),
                      id: "1"
                      ;
                      initTagRenderer("".split(" "), "".split(" "), channelOptions);

                      StackExchange.using("externalEditor", function()
                      // Have to fire editor after snippets, if snippets enabled
                      if (StackExchange.settings.snippets.snippetsEnabled)
                      StackExchange.using("snippets", function()
                      createEditor();
                      );

                      else
                      createEditor();

                      );

                      function createEditor()
                      StackExchange.prepareEditor(
                      heartbeatType: 'answer',
                      autoActivateHeartbeat: false,
                      convertImagesToLinks: true,
                      noModals: true,
                      showLowRepImageUploadWarning: true,
                      reputationToPostImages: 10,
                      bindNavPrevention: true,
                      postfix: "",
                      imageUploader:
                      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                      allowUrls: true
                      ,
                      onDemand: true,
                      discardSelector: ".discard-answer"
                      ,immediatelyShowMarkdownHelp:true
                      );



                      );













                      draft saved

                      draft discarded


















                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47180722%2fcreate-react-app-failing-to-create-a-new-react-app-in-windows-10%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown

























                      7 Answers
                      7






                      active

                      oldest

                      votes








                      7 Answers
                      7






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes









                      3














                      It looks like you need admin privileges to write some of the generated files. Can you create a terminal instance with administrator rights then reissue the command?






                      share|improve this answer



























                        3














                        It looks like you need admin privileges to write some of the generated files. Can you create a terminal instance with administrator rights then reissue the command?






                        share|improve this answer

























                          3












                          3








                          3







                          It looks like you need admin privileges to write some of the generated files. Can you create a terminal instance with administrator rights then reissue the command?






                          share|improve this answer













                          It looks like you need admin privileges to write some of the generated files. Can you create a terminal instance with administrator rights then reissue the command?







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 8 '17 at 13:22









                          duhaimeduhaime

                          9,26456188




                          9,26456188























                              2














                              You probably had "create-react-app" running before, which was the problem in my case anyway. The way I solved this was using
                              npm cache clean --force and ran create-react-app my-app again.






                              share|improve this answer



























                                2














                                You probably had "create-react-app" running before, which was the problem in my case anyway. The way I solved this was using
                                npm cache clean --force and ran create-react-app my-app again.






                                share|improve this answer

























                                  2












                                  2








                                  2







                                  You probably had "create-react-app" running before, which was the problem in my case anyway. The way I solved this was using
                                  npm cache clean --force and ran create-react-app my-app again.






                                  share|improve this answer













                                  You probably had "create-react-app" running before, which was the problem in my case anyway. The way I solved this was using
                                  npm cache clean --force and ran create-react-app my-app again.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Oct 15 '18 at 19:51









                                  Tobi AdedipeTobi Adedipe

                                  213




                                  213





















                                      1














                                      I was faced this same problem . It is due to the issue with npm .



                                      please run the following command in command Line



                                      npm cache clean --force


                                      then run



                                      create-react-app <project Name>


                                      If your problem still exist then switch from npm to yarn



                                      run the following commands, it solved my problem



                                      npm install -g yarn

                                      yarn global add create-react-app

                                      create-react-app <projectname>





                                      share|improve this answer



























                                        1














                                        I was faced this same problem . It is due to the issue with npm .



                                        please run the following command in command Line



                                        npm cache clean --force


                                        then run



                                        create-react-app <project Name>


                                        If your problem still exist then switch from npm to yarn



                                        run the following commands, it solved my problem



                                        npm install -g yarn

                                        yarn global add create-react-app

                                        create-react-app <projectname>





                                        share|improve this answer

























                                          1












                                          1








                                          1







                                          I was faced this same problem . It is due to the issue with npm .



                                          please run the following command in command Line



                                          npm cache clean --force


                                          then run



                                          create-react-app <project Name>


                                          If your problem still exist then switch from npm to yarn



                                          run the following commands, it solved my problem



                                          npm install -g yarn

                                          yarn global add create-react-app

                                          create-react-app <projectname>





                                          share|improve this answer













                                          I was faced this same problem . It is due to the issue with npm .



                                          please run the following command in command Line



                                          npm cache clean --force


                                          then run



                                          create-react-app <project Name>


                                          If your problem still exist then switch from npm to yarn



                                          run the following commands, it solved my problem



                                          npm install -g yarn

                                          yarn global add create-react-app

                                          create-react-app <projectname>






                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Dec 14 '18 at 3:43









                                          Alex VargheseAlex Varghese

                                          639




                                          639





















                                              0














                                              For me, i wasn't connected to the internet when i tried to run 'create-react-app', so i connected and tried it, it worked, i'm guessing it needed to install some packages from the internet.






                                              share|improve this answer



























                                                0














                                                For me, i wasn't connected to the internet when i tried to run 'create-react-app', so i connected and tried it, it worked, i'm guessing it needed to install some packages from the internet.






                                                share|improve this answer

























                                                  0












                                                  0








                                                  0







                                                  For me, i wasn't connected to the internet when i tried to run 'create-react-app', so i connected and tried it, it worked, i'm guessing it needed to install some packages from the internet.






                                                  share|improve this answer













                                                  For me, i wasn't connected to the internet when i tried to run 'create-react-app', so i connected and tried it, it worked, i'm guessing it needed to install some packages from the internet.







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered Dec 3 '18 at 19:54









                                                  Tobi AdedipeTobi Adedipe

                                                  213




                                                  213





















                                                      0














                                                      I suspect npm has an issue. However, this was how I was able to resolve it



                                                      follow this steps, i assure you, you will get it resolved. It worked for me



                                                      1. npm install -g yarn


                                                      2. yarn global add create-react-app


                                                      3. create-react-app






                                                      share|improve this answer



























                                                        0














                                                        I suspect npm has an issue. However, this was how I was able to resolve it



                                                        follow this steps, i assure you, you will get it resolved. It worked for me



                                                        1. npm install -g yarn


                                                        2. yarn global add create-react-app


                                                        3. create-react-app






                                                        share|improve this answer

























                                                          0












                                                          0








                                                          0







                                                          I suspect npm has an issue. However, this was how I was able to resolve it



                                                          follow this steps, i assure you, you will get it resolved. It worked for me



                                                          1. npm install -g yarn


                                                          2. yarn global add create-react-app


                                                          3. create-react-app






                                                          share|improve this answer













                                                          I suspect npm has an issue. However, this was how I was able to resolve it



                                                          follow this steps, i assure you, you will get it resolved. It worked for me



                                                          1. npm install -g yarn


                                                          2. yarn global add create-react-app


                                                          3. create-react-app







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Jan 13 at 17:17









                                                          McbriandavidsMcbriandavids

                                                          13




                                                          13





















                                                              -1














                                                              This was my error:



                                                              3695 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\****\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
                                                              3696 verbose node v6.10.3
                                                              3697 verbose npm v6.4.1
                                                              3698 error code Z_BUF_ERROR
                                                              3699 error errno -5
                                                              3700 error zlib: unexpected end of file


                                                              This solved the issue:



                                                              npm cache clean --force and ran create-react-app my-app





                                                              share|improve this answer

























                                                              • thanks stackoverflow.com/users/2227743/moritz

                                                                – Venkat Gupta
                                                                Oct 30 '18 at 11:39















                                                              -1














                                                              This was my error:



                                                              3695 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\****\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
                                                              3696 verbose node v6.10.3
                                                              3697 verbose npm v6.4.1
                                                              3698 error code Z_BUF_ERROR
                                                              3699 error errno -5
                                                              3700 error zlib: unexpected end of file


                                                              This solved the issue:



                                                              npm cache clean --force and ran create-react-app my-app





                                                              share|improve this answer

























                                                              • thanks stackoverflow.com/users/2227743/moritz

                                                                – Venkat Gupta
                                                                Oct 30 '18 at 11:39













                                                              -1












                                                              -1








                                                              -1







                                                              This was my error:



                                                              3695 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\****\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
                                                              3696 verbose node v6.10.3
                                                              3697 verbose npm v6.4.1
                                                              3698 error code Z_BUF_ERROR
                                                              3699 error errno -5
                                                              3700 error zlib: unexpected end of file


                                                              This solved the issue:



                                                              npm cache clean --force and ran create-react-app my-app





                                                              share|improve this answer















                                                              This was my error:



                                                              3695 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\****\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
                                                              3696 verbose node v6.10.3
                                                              3697 verbose npm v6.4.1
                                                              3698 error code Z_BUF_ERROR
                                                              3699 error errno -5
                                                              3700 error zlib: unexpected end of file


                                                              This solved the issue:



                                                              npm cache clean --force and ran create-react-app my-app






                                                              share|improve this answer














                                                              share|improve this answer



                                                              share|improve this answer








                                                              edited Oct 29 '18 at 14:59









                                                              ayaio

                                                              59.1k20135189




                                                              59.1k20135189










                                                              answered Oct 29 '18 at 14:05









                                                              Venkat GuptaVenkat Gupta

                                                              11




                                                              11












                                                              • thanks stackoverflow.com/users/2227743/moritz

                                                                – Venkat Gupta
                                                                Oct 30 '18 at 11:39

















                                                              • thanks stackoverflow.com/users/2227743/moritz

                                                                – Venkat Gupta
                                                                Oct 30 '18 at 11:39
















                                                              thanks stackoverflow.com/users/2227743/moritz

                                                              – Venkat Gupta
                                                              Oct 30 '18 at 11:39





                                                              thanks stackoverflow.com/users/2227743/moritz

                                                              – Venkat Gupta
                                                              Oct 30 '18 at 11:39











                                                              -1














                                                              Creating a new React app in C:UsersCMDownloadsreactgithub-profile.
                                                              Installing packages. This might take a couple of minutes.
                                                              Installing react, react-dom, and react-scripts...

                                                              npm ERR! path C:UsersCMAppDataRoamingnpm-cache_cacachecontent-

                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335b1
                                                              0893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806

                                                              npm ERR! code EPERM
                                                              npm ERR! errno -4048
                                                              npm ERR! syscall lstat
                                                              npm ERR! Error: EPERM: operation not permitted, lstat
                                                              'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                              b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6
                                                              5545008a3cad93d00f806'
                                                              npm ERR! { [Error: EPERM: operation not permitted, lstat
                                                              'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1f
                                                              a335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6554500
                                                              8a3cad93d00f806']

                                                              npm ERR! cause:
                                                              npm ERR! Error: EPERM: operation not permitted, lstat
                                                              'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1
                                                              fa335b10893d67f7339e4
                                                              af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806'
                                                              npm ERR! errno: -4048,
                                                              npm ERR! code: 'EPERM',
                                                              npm ERR! syscall: 'lstat',
                                                              npm ERR! path:
                                                              npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-


                                                              npm ERR! stack:
                                                              npm ERR! 'Error: EPERM: operation not permitted, lstat
                                                              'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                              b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015
                                                              eec65545008a3cad93d00f806'',
                                                              npm ERR! errno: -4048,
                                                              npm ERR! code: 'EPERM',
                                                              npm ERR! syscall: 'lstat',
                                                              npm ERR! path:
                                                              npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                              v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335
                                                              b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93
                                                              d00f806',
                                                              npm ERR! parent: 'postcss-image-set-function'
                                                              npm ERR!
                                                              npm ERR! The operation was rejected by your operating system.
                                                              npm ERR! It's possible that the file was already in use (by a
                                                              text editor or antivirus),
                                                              npm ERR! or that you lack permissions to access it.
                                                              npm ERR!
                                                              npm ERR! If you believe this might be a permissions issue, please double-
                                                              check thenpm ERR! permissions of the file and its containing directories, or
                                                              try running

                                                              npm ERR! the command again as root/Administrator (though this is not
                                                              recommended).
                                                              npm ERR! A complete log of this run can be found in:
                                                              npm ERR! C:UsersCMAppDataRoamingnpm-cache_logs2019-03-22T10_
                                                              27_19_722Z-debug.log


                                                              Aborting installation.
                                                              npm install --save --save-exact --loglevel error react react-dom react-
                                                              scripts has failed.

                                                              Deleting generated file... node_modules
                                                              Deleting generated file... package.json
                                                              Deleting github-profile/ from C:UsersCMDownloadsreactDone.``


                                                              i was facing similar error but i tried to run create-react-app command many times and finally it was created , this was the problem with my internet connection. check your inernet connection






                                                              share|improve this answer



























                                                                -1














                                                                Creating a new React app in C:UsersCMDownloadsreactgithub-profile.
                                                                Installing packages. This might take a couple of minutes.
                                                                Installing react, react-dom, and react-scripts...

                                                                npm ERR! path C:UsersCMAppDataRoamingnpm-cache_cacachecontent-

                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335b1
                                                                0893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806

                                                                npm ERR! code EPERM
                                                                npm ERR! errno -4048
                                                                npm ERR! syscall lstat
                                                                npm ERR! Error: EPERM: operation not permitted, lstat
                                                                'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6
                                                                5545008a3cad93d00f806'
                                                                npm ERR! { [Error: EPERM: operation not permitted, lstat
                                                                'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1f
                                                                a335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6554500
                                                                8a3cad93d00f806']

                                                                npm ERR! cause:
                                                                npm ERR! Error: EPERM: operation not permitted, lstat
                                                                'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1
                                                                fa335b10893d67f7339e4
                                                                af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806'
                                                                npm ERR! errno: -4048,
                                                                npm ERR! code: 'EPERM',
                                                                npm ERR! syscall: 'lstat',
                                                                npm ERR! path:
                                                                npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-


                                                                npm ERR! stack:
                                                                npm ERR! 'Error: EPERM: operation not permitted, lstat
                                                                'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015
                                                                eec65545008a3cad93d00f806'',
                                                                npm ERR! errno: -4048,
                                                                npm ERR! code: 'EPERM',
                                                                npm ERR! syscall: 'lstat',
                                                                npm ERR! path:
                                                                npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335
                                                                b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93
                                                                d00f806',
                                                                npm ERR! parent: 'postcss-image-set-function'
                                                                npm ERR!
                                                                npm ERR! The operation was rejected by your operating system.
                                                                npm ERR! It's possible that the file was already in use (by a
                                                                text editor or antivirus),
                                                                npm ERR! or that you lack permissions to access it.
                                                                npm ERR!
                                                                npm ERR! If you believe this might be a permissions issue, please double-
                                                                check thenpm ERR! permissions of the file and its containing directories, or
                                                                try running

                                                                npm ERR! the command again as root/Administrator (though this is not
                                                                recommended).
                                                                npm ERR! A complete log of this run can be found in:
                                                                npm ERR! C:UsersCMAppDataRoamingnpm-cache_logs2019-03-22T10_
                                                                27_19_722Z-debug.log


                                                                Aborting installation.
                                                                npm install --save --save-exact --loglevel error react react-dom react-
                                                                scripts has failed.

                                                                Deleting generated file... node_modules
                                                                Deleting generated file... package.json
                                                                Deleting github-profile/ from C:UsersCMDownloadsreactDone.``


                                                                i was facing similar error but i tried to run create-react-app command many times and finally it was created , this was the problem with my internet connection. check your inernet connection






                                                                share|improve this answer

























                                                                  -1












                                                                  -1








                                                                  -1







                                                                  Creating a new React app in C:UsersCMDownloadsreactgithub-profile.
                                                                  Installing packages. This might take a couple of minutes.
                                                                  Installing react, react-dom, and react-scripts...

                                                                  npm ERR! path C:UsersCMAppDataRoamingnpm-cache_cacachecontent-

                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335b1
                                                                  0893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806

                                                                  npm ERR! code EPERM
                                                                  npm ERR! errno -4048
                                                                  npm ERR! syscall lstat
                                                                  npm ERR! Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                  b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6
                                                                  5545008a3cad93d00f806'
                                                                  npm ERR! { [Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1f
                                                                  a335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6554500
                                                                  8a3cad93d00f806']

                                                                  npm ERR! cause:
                                                                  npm ERR! Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1
                                                                  fa335b10893d67f7339e4
                                                                  af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806'
                                                                  npm ERR! errno: -4048,
                                                                  npm ERR! code: 'EPERM',
                                                                  npm ERR! syscall: 'lstat',
                                                                  npm ERR! path:
                                                                  npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-


                                                                  npm ERR! stack:
                                                                  npm ERR! 'Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                  b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015
                                                                  eec65545008a3cad93d00f806'',
                                                                  npm ERR! errno: -4048,
                                                                  npm ERR! code: 'EPERM',
                                                                  npm ERR! syscall: 'lstat',
                                                                  npm ERR! path:
                                                                  npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335
                                                                  b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93
                                                                  d00f806',
                                                                  npm ERR! parent: 'postcss-image-set-function'
                                                                  npm ERR!
                                                                  npm ERR! The operation was rejected by your operating system.
                                                                  npm ERR! It's possible that the file was already in use (by a
                                                                  text editor or antivirus),
                                                                  npm ERR! or that you lack permissions to access it.
                                                                  npm ERR!
                                                                  npm ERR! If you believe this might be a permissions issue, please double-
                                                                  check thenpm ERR! permissions of the file and its containing directories, or
                                                                  try running

                                                                  npm ERR! the command again as root/Administrator (though this is not
                                                                  recommended).
                                                                  npm ERR! A complete log of this run can be found in:
                                                                  npm ERR! C:UsersCMAppDataRoamingnpm-cache_logs2019-03-22T10_
                                                                  27_19_722Z-debug.log


                                                                  Aborting installation.
                                                                  npm install --save --save-exact --loglevel error react react-dom react-
                                                                  scripts has failed.

                                                                  Deleting generated file... node_modules
                                                                  Deleting generated file... package.json
                                                                  Deleting github-profile/ from C:UsersCMDownloadsreactDone.``


                                                                  i was facing similar error but i tried to run create-react-app command many times and finally it was created , this was the problem with my internet connection. check your inernet connection






                                                                  share|improve this answer













                                                                  Creating a new React app in C:UsersCMDownloadsreactgithub-profile.
                                                                  Installing packages. This might take a couple of minutes.
                                                                  Installing react, react-dom, and react-scripts...

                                                                  npm ERR! path C:UsersCMAppDataRoamingnpm-cache_cacachecontent-

                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335b1
                                                                  0893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806

                                                                  npm ERR! code EPERM
                                                                  npm ERR! errno -4048
                                                                  npm ERR! syscall lstat
                                                                  npm ERR! Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                  b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6
                                                                  5545008a3cad93d00f806'
                                                                  npm ERR! { [Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1f
                                                                  a335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec6554500
                                                                  8a3cad93d00f806']

                                                                  npm ERR! cause:
                                                                  npm ERR! Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1
                                                                  fa335b10893d67f7339e4
                                                                  af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93d00f806'
                                                                  npm ERR! errno: -4048,
                                                                  npm ERR! code: 'EPERM',
                                                                  npm ERR! syscall: 'lstat',
                                                                  npm ERR! path:
                                                                  npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-


                                                                  npm ERR! stack:
                                                                  npm ERR! 'Error: EPERM: operation not permitted, lstat
                                                                  'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996
                                                                  b1fa335b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015
                                                                  eec65545008a3cad93d00f806'',
                                                                  npm ERR! errno: -4048,
                                                                  npm ERR! code: 'EPERM',
                                                                  npm ERR! syscall: 'lstat',
                                                                  npm ERR! path:
                                                                  npm ERR! 'C:UsersCMAppDataRoamingnpm-cache_cacachecontent-
                                                                  v2sha51236c6c3e97514319bc1c6d40026e58325e782e1016c996b1fa335
                                                                  b10893d67f7339e4af62bb688c0da2aaca839d4c9d51e2eb015eec65545008a3cad93
                                                                  d00f806',
                                                                  npm ERR! parent: 'postcss-image-set-function'
                                                                  npm ERR!
                                                                  npm ERR! The operation was rejected by your operating system.
                                                                  npm ERR! It's possible that the file was already in use (by a
                                                                  text editor or antivirus),
                                                                  npm ERR! or that you lack permissions to access it.
                                                                  npm ERR!
                                                                  npm ERR! If you believe this might be a permissions issue, please double-
                                                                  check thenpm ERR! permissions of the file and its containing directories, or
                                                                  try running

                                                                  npm ERR! the command again as root/Administrator (though this is not
                                                                  recommended).
                                                                  npm ERR! A complete log of this run can be found in:
                                                                  npm ERR! C:UsersCMAppDataRoamingnpm-cache_logs2019-03-22T10_
                                                                  27_19_722Z-debug.log


                                                                  Aborting installation.
                                                                  npm install --save --save-exact --loglevel error react react-dom react-
                                                                  scripts has failed.

                                                                  Deleting generated file... node_modules
                                                                  Deleting generated file... package.json
                                                                  Deleting github-profile/ from C:UsersCMDownloadsreactDone.``


                                                                  i was facing similar error but i tried to run create-react-app command many times and finally it was created , this was the problem with my internet connection. check your inernet connection







                                                                  share|improve this answer












                                                                  share|improve this answer



                                                                  share|improve this answer










                                                                  answered Mar 22 at 11:01









                                                                  chandra mohanchandra mohan

                                                                  11




                                                                  11



























                                                                      draft saved

                                                                      draft discarded
















































                                                                      Thanks for contributing an answer to Stack Overflow!


                                                                      • Please be sure to answer the question. Provide details and share your research!

                                                                      But avoid


                                                                      • Asking for help, clarification, or responding to other answers.

                                                                      • Making statements based on opinion; back them up with references or personal experience.

                                                                      To learn more, see our tips on writing great answers.




                                                                      draft saved


                                                                      draft discarded














                                                                      StackExchange.ready(
                                                                      function ()
                                                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47180722%2fcreate-react-app-failing-to-create-a-new-react-app-in-windows-10%23new-answer', 'question_page');

                                                                      );

                                                                      Post as a guest















                                                                      Required, but never shown





















































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown

































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown







                                                                      Popular posts from this blog

                                                                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                                                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                                                                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript