Permission denied when we use npm start using webpack?












1















The following error will be displayed when i use the command "npm start".



> callcenter@0.1.0 start /var/www/html/dev/callcenter
> react-scripts start

sh: 1: react-scripts: Permission denied

npm ERR! Linux 4.4.0-1013-aws
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! callcenter@0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the callcenter@0.1.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the callcenter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs callcenter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls callcenter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/dev/callcenter/npm-debug.log









share|improve this question

























  • The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

    – Chen A.
    Jul 26 '17 at 13:30
















1















The following error will be displayed when i use the command "npm start".



> callcenter@0.1.0 start /var/www/html/dev/callcenter
> react-scripts start

sh: 1: react-scripts: Permission denied

npm ERR! Linux 4.4.0-1013-aws
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! callcenter@0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the callcenter@0.1.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the callcenter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs callcenter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls callcenter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/dev/callcenter/npm-debug.log









share|improve this question

























  • The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

    – Chen A.
    Jul 26 '17 at 13:30














1












1








1


1






The following error will be displayed when i use the command "npm start".



> callcenter@0.1.0 start /var/www/html/dev/callcenter
> react-scripts start

sh: 1: react-scripts: Permission denied

npm ERR! Linux 4.4.0-1013-aws
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! callcenter@0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the callcenter@0.1.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the callcenter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs callcenter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls callcenter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/dev/callcenter/npm-debug.log









share|improve this question
















The following error will be displayed when i use the command "npm start".



> callcenter@0.1.0 start /var/www/html/dev/callcenter
> react-scripts start

sh: 1: react-scripts: Permission denied

npm ERR! Linux 4.4.0-1013-aws
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! callcenter@0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the callcenter@0.1.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the callcenter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs callcenter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls callcenter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/dev/callcenter/npm-debug.log






linux node.js






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 0:57









Rui F Ribeiro

39.5k1479132




39.5k1479132










asked Jul 26 '17 at 13:24









Eswaran ArumugamEswaran Arumugam

612




612













  • The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

    – Chen A.
    Jul 26 '17 at 13:30



















  • The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

    – Chen A.
    Jul 26 '17 at 13:30

















The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

– Chen A.
Jul 26 '17 at 13:30





The user callcenter (which executes the script) probably has no access to the path required (/var/www/html). Check permissions on this folder. To validate this is the issue, try to execute this script as root (if possible).

– Chen A.
Jul 26 '17 at 13:30










2 Answers
2






active

oldest

votes


















2














Make sure that your react-script binary is executable.



$ chmod +x node_modules/.bin/react-scripts





share|improve this answer































    0














    I encountered the same issue, Surprisingly it works fine in Windows but failed in Linux giving the same error. Follow below step to resolve this issue.



    you need to change package.json file inside your project folder like below instead of default value of "start": "react-scripts start"




    "scripts": {
    "start": "node ./node_modules/react-scripts/bin/react-scripts.js start" }







    share|improve this answer








    New contributor




    harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      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: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      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%2funix.stackexchange.com%2fquestions%2f381902%2fpermission-denied-when-we-use-npm-start-using-webpack%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Make sure that your react-script binary is executable.



      $ chmod +x node_modules/.bin/react-scripts





      share|improve this answer




























        2














        Make sure that your react-script binary is executable.



        $ chmod +x node_modules/.bin/react-scripts





        share|improve this answer


























          2












          2








          2







          Make sure that your react-script binary is executable.



          $ chmod +x node_modules/.bin/react-scripts





          share|improve this answer













          Make sure that your react-script binary is executable.



          $ chmod +x node_modules/.bin/react-scripts






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 26 '17 at 22:13









          SpackSpack

          1,5611014




          1,5611014

























              0














              I encountered the same issue, Surprisingly it works fine in Windows but failed in Linux giving the same error. Follow below step to resolve this issue.



              you need to change package.json file inside your project folder like below instead of default value of "start": "react-scripts start"




              "scripts": {
              "start": "node ./node_modules/react-scripts/bin/react-scripts.js start" }







              share|improve this answer








              New contributor




              harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                I encountered the same issue, Surprisingly it works fine in Windows but failed in Linux giving the same error. Follow below step to resolve this issue.



                you need to change package.json file inside your project folder like below instead of default value of "start": "react-scripts start"




                "scripts": {
                "start": "node ./node_modules/react-scripts/bin/react-scripts.js start" }







                share|improve this answer








                New contributor




                harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  I encountered the same issue, Surprisingly it works fine in Windows but failed in Linux giving the same error. Follow below step to resolve this issue.



                  you need to change package.json file inside your project folder like below instead of default value of "start": "react-scripts start"




                  "scripts": {
                  "start": "node ./node_modules/react-scripts/bin/react-scripts.js start" }







                  share|improve this answer








                  New contributor




                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  I encountered the same issue, Surprisingly it works fine in Windows but failed in Linux giving the same error. Follow below step to resolve this issue.



                  you need to change package.json file inside your project folder like below instead of default value of "start": "react-scripts start"




                  "scripts": {
                  "start": "node ./node_modules/react-scripts/bin/react-scripts.js start" }








                  share|improve this answer








                  New contributor




                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 21 mins ago









                  harsha siriwardanaharsha siriwardana

                  1




                  1




                  New contributor




                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  harsha siriwardana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • 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%2funix.stackexchange.com%2fquestions%2f381902%2fpermission-denied-when-we-use-npm-start-using-webpack%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

                      CARDNET

                      Boot-repair Failure: Unable to locate package grub-common:i386

                      濃尾地震