Permission denied when we use npm start using webpack?
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
add a comment |
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
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
add a comment |
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
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
linux node.js
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Make sure that your react-script
binary is executable.
$ chmod +x node_modules/.bin/react-scripts
add a comment |
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
" }
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Make sure that your react-script
binary is executable.
$ chmod +x node_modules/.bin/react-scripts
add a comment |
Make sure that your react-script
binary is executable.
$ chmod +x node_modules/.bin/react-scripts
add a comment |
Make sure that your react-script
binary is executable.
$ chmod +x node_modules/.bin/react-scripts
Make sure that your react-script
binary is executable.
$ chmod +x node_modules/.bin/react-scripts
answered Jul 26 '17 at 22:13
SpackSpack
1,5611014
1,5611014
add a comment |
add a comment |
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
" }
New contributor
add a comment |
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
" }
New contributor
add a comment |
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
" }
New contributor
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
" }
New contributor
New contributor
answered 21 mins ago
harsha siriwardanaharsha siriwardana
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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