Is it possible to install Node.js and NPM on Ubuntu Core?
I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.
I see this issue Node on Snappy Ubuntu, but it says nothing.
Thank you very much.
ubuntu-core nodejs npm
add a comment |
I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.
I see this issue Node on Snappy Ubuntu, but it says nothing.
Thank you very much.
ubuntu-core nodejs npm
add a comment |
I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.
I see this issue Node on Snappy Ubuntu, but it says nothing.
Thank you very much.
ubuntu-core nodejs npm
I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.
I see this issue Node on Snappy Ubuntu, but it says nothing.
Thank you very much.
ubuntu-core nodejs npm
ubuntu-core nodejs npm
asked Oct 19 '17 at 14:42
user280841user280841
78117
78117
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application>
. Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.
add a comment |
This worked for me.
I used the info here: Install applications in Ubuntu core
sudo snap install classic --devmode --edge
then
sudo classic
To enable aptitude, then your normal:
sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm
To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':
sudo npm i -g n
sudo n stable
But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f966368%2fis-it-possible-to-install-node-js-and-npm-on-ubuntu-core%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
If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application>
. Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.
add a comment |
If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application>
. Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.
add a comment |
If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application>
. Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.
If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application>
. Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.
answered Mar 14 '18 at 13:42
Rustam IsaevRustam Isaev
514
514
add a comment |
add a comment |
This worked for me.
I used the info here: Install applications in Ubuntu core
sudo snap install classic --devmode --edge
then
sudo classic
To enable aptitude, then your normal:
sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm
To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':
sudo npm i -g n
sudo n stable
But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.
add a comment |
This worked for me.
I used the info here: Install applications in Ubuntu core
sudo snap install classic --devmode --edge
then
sudo classic
To enable aptitude, then your normal:
sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm
To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':
sudo npm i -g n
sudo n stable
But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.
add a comment |
This worked for me.
I used the info here: Install applications in Ubuntu core
sudo snap install classic --devmode --edge
then
sudo classic
To enable aptitude, then your normal:
sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm
To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':
sudo npm i -g n
sudo n stable
But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.
This worked for me.
I used the info here: Install applications in Ubuntu core
sudo snap install classic --devmode --edge
then
sudo classic
To enable aptitude, then your normal:
sudo apt-get install nodejs nodejs-legacy npm
sudo npm i -g npm
To get NPM to version: 3.5.2 and Node to: 4.2.6
Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':
sudo npm i -g n
sudo n stable
But as NPM doesn't work with this version of Node that's not happening.
I found this How can I update my nodeJS to the latest version? and used:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.
Then you can install git to clone your app or do whatever.
You've probably already solved your problem, but offering a possible solution in case anyone else is after one.
answered Feb 4 '18 at 10:14
WillWill
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f966368%2fis-it-possible-to-install-node-js-and-npm-on-ubuntu-core%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