Sudo not found. Trying npm install
I am using a Windows 8.1 laptop. I keep getting sudo not found. Trying npm install with the following command:
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -g git
git@0.1.5 C:UsersDaveAppDataRoamingnpmnode_modulesgit
└── mime@1.2.9
F:Webruin2>git -v
'git' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -s sudo
sudo@1.0.3 node_modulessudo
├── inpath@1.0.2
├── pidof@1.0.2
└── read@1.0.5 (mute-stream@0.0.4)
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
Please let me know the best way to proceed. If this is off topic, please help me get it back on topic. ;)
Tim
windows node.js sudo
add a comment |
I am using a Windows 8.1 laptop. I keep getting sudo not found. Trying npm install with the following command:
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -g git
git@0.1.5 C:UsersDaveAppDataRoamingnpmnode_modulesgit
└── mime@1.2.9
F:Webruin2>git -v
'git' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -s sudo
sudo@1.0.3 node_modulessudo
├── inpath@1.0.2
├── pidof@1.0.2
└── read@1.0.5 (mute-stream@0.0.4)
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
Please let me know the best way to proceed. If this is off topic, please help me get it back on topic. ;)
Tim
windows node.js sudo
2
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33
add a comment |
I am using a Windows 8.1 laptop. I keep getting sudo not found. Trying npm install with the following command:
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -g git
git@0.1.5 C:UsersDaveAppDataRoamingnpmnode_modulesgit
└── mime@1.2.9
F:Webruin2>git -v
'git' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -s sudo
sudo@1.0.3 node_modulessudo
├── inpath@1.0.2
├── pidof@1.0.2
└── read@1.0.5 (mute-stream@0.0.4)
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
Please let me know the best way to proceed. If this is off topic, please help me get it back on topic. ;)
Tim
windows node.js sudo
I am using a Windows 8.1 laptop. I keep getting sudo not found. Trying npm install with the following command:
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -g git
git@0.1.5 C:UsersDaveAppDataRoamingnpmnode_modulesgit
└── mime@1.2.9
F:Webruin2>git -v
'git' is not recognized as an internal or external command,
operable program or batch file.
F:Webruin2>npm install -s sudo
sudo@1.0.3 node_modulessudo
├── inpath@1.0.2
├── pidof@1.0.2
└── read@1.0.5 (mute-stream@0.0.4)
F:Webruin2>sudo npm install -g git
'sudo' is not recognized as an internal or external command,
operable program or batch file.
Please let me know the best way to proceed. If this is off topic, please help me get it back on topic. ;)
Tim
windows node.js sudo
windows node.js sudo
asked Apr 12 '15 at 17:16
WebRuinWebRuin
40118
40118
2
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33
add a comment |
2
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33
2
2
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33
add a comment |
1 Answer
1
active
oldest
votes
The 'sudo' command will not be recognized by the Windows command prompt (cmd.exe) because 'sudo' is a Unix/Linux-based application which is only compatible with that particular operating system. Windows does not currently include or support this command.
On a Unix/Linux operating system, 'sudo' is an application used to temporarily gain the security privileges of another user (usually root/administrator), often for the purpose of software or driver installation, and is similar to running the Windows command prompt as administrator.
Based on the outputs you have posted, npm already appears to be installed on your system (as seen by the execution of "npm install -s sudo"), so you should be able to install npm modules with the command "npm install $modulename", with '$modulename' being replaced by the name of the module or library you wish to install.
If you are trying to install Git on your Windows platform, I recommend using the appropriate installer from: http://git-scm.com/download
add a comment |
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
});
}
});
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%2fstackoverflow.com%2fquestions%2f29592228%2fsudo-not-found-trying-npm-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The 'sudo' command will not be recognized by the Windows command prompt (cmd.exe) because 'sudo' is a Unix/Linux-based application which is only compatible with that particular operating system. Windows does not currently include or support this command.
On a Unix/Linux operating system, 'sudo' is an application used to temporarily gain the security privileges of another user (usually root/administrator), often for the purpose of software or driver installation, and is similar to running the Windows command prompt as administrator.
Based on the outputs you have posted, npm already appears to be installed on your system (as seen by the execution of "npm install -s sudo"), so you should be able to install npm modules with the command "npm install $modulename", with '$modulename' being replaced by the name of the module or library you wish to install.
If you are trying to install Git on your Windows platform, I recommend using the appropriate installer from: http://git-scm.com/download
add a comment |
The 'sudo' command will not be recognized by the Windows command prompt (cmd.exe) because 'sudo' is a Unix/Linux-based application which is only compatible with that particular operating system. Windows does not currently include or support this command.
On a Unix/Linux operating system, 'sudo' is an application used to temporarily gain the security privileges of another user (usually root/administrator), often for the purpose of software or driver installation, and is similar to running the Windows command prompt as administrator.
Based on the outputs you have posted, npm already appears to be installed on your system (as seen by the execution of "npm install -s sudo"), so you should be able to install npm modules with the command "npm install $modulename", with '$modulename' being replaced by the name of the module or library you wish to install.
If you are trying to install Git on your Windows platform, I recommend using the appropriate installer from: http://git-scm.com/download
add a comment |
The 'sudo' command will not be recognized by the Windows command prompt (cmd.exe) because 'sudo' is a Unix/Linux-based application which is only compatible with that particular operating system. Windows does not currently include or support this command.
On a Unix/Linux operating system, 'sudo' is an application used to temporarily gain the security privileges of another user (usually root/administrator), often for the purpose of software or driver installation, and is similar to running the Windows command prompt as administrator.
Based on the outputs you have posted, npm already appears to be installed on your system (as seen by the execution of "npm install -s sudo"), so you should be able to install npm modules with the command "npm install $modulename", with '$modulename' being replaced by the name of the module or library you wish to install.
If you are trying to install Git on your Windows platform, I recommend using the appropriate installer from: http://git-scm.com/download
The 'sudo' command will not be recognized by the Windows command prompt (cmd.exe) because 'sudo' is a Unix/Linux-based application which is only compatible with that particular operating system. Windows does not currently include or support this command.
On a Unix/Linux operating system, 'sudo' is an application used to temporarily gain the security privileges of another user (usually root/administrator), often for the purpose of software or driver installation, and is similar to running the Windows command prompt as administrator.
Based on the outputs you have posted, npm already appears to be installed on your system (as seen by the execution of "npm install -s sudo"), so you should be able to install npm modules with the command "npm install $modulename", with '$modulename' being replaced by the name of the module or library you wish to install.
If you are trying to install Git on your Windows platform, I recommend using the appropriate installer from: http://git-scm.com/download
edited Nov 20 '18 at 18:57
answered Apr 12 '15 at 18:24
dlindleydlindley
863
863
add a comment |
add a comment |
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.
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%2fstackoverflow.com%2fquestions%2f29592228%2fsudo-not-found-trying-npm-install%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
2
Sudo is a built-in unix/linux command, so I'm not sure how your windows machine would make sense of it. I know this sounds snarky, and is probably not the answer you're looking for, but my honest recommendation would be to ditch your Windows computer for.. basically anything else. A macbook is nice if you can afford it, but if not, you'll probably have a nicer development experience by running ubuntu inside of VirtualBox.
– Raphael Serota
Apr 12 '15 at 17:33