Tag: nodejs

无法从nodesource安装nodejs脚本

我正在使用此命令,假设从节点源安装Nodejs脚本 sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash – 但它总是回归 Err:10 http://dl.google.com/linux/chromre/deb table/main amd64 Packages 404 Not Found Ign:11 http://dl.google.com/linux/chromre/deb table/main all Packages Ign:12 http://dl.google.com/linux/chromre/deb table/main Translation-en_US Ign:13 http://dl.google.com/linux/chromre/deb table/main Translation-en Ign:14 http://dl.google.com/linux/chromre/deb table/main amd64 DEP-11 Metadata Ign:15 http://dl.google.com/linux/chromre/deb table/main DEP-11 64×64 Icons Reading package lists… Done W: The repository ‘http://dl.google.com/linux/chromre/deb table Release’ does […]

节点包管理器以某种方式损坏,现在无法安装

当我决定在nodejs app目录中使用npm update -g时,我遇到了一个问题。 这是一个糟糕的决定,因为它导致我遇到npm的常见和灾难性问题 。 解决方案是重新安装nodejs和npm。 不幸的是,当我使用sudo apt-get install npm它不起作用。 终端中的完整错误如下: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may […]

安装最新的Node.js / MongoDB?

如何安装Node.js和MongoDB以使它们成为最新版本? 包管理器中的可用版本不是最新版本,而来自Chris Lea的Node.js的PPA不会定期更新。

如何使用apt安装NodeJS 4?

如何使用apt-get实用程序在Ubuntu上安装NodeJS 4 ?

Ubuntu /安装NodeJS&npm

我正在尝试安装nodejs和npm,但是它失败了。 这是我的终端: sudo apt-get install nodejs npm Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out […]

我怎样才能让jshint工作?

我使用sudo npm install -g jshint ,它似乎有效: $which jshint /usr/local/bin/jshint 然而,运行jshint或其完整路径等效似乎没有做任何事情。 它也没有给出错误 – 它什么都不做: $jshint $jshint –help $jshint –verbose $jshint –debug $jshint admin.js $jshint admin.js –verbose $/usr/local/bin/jshint admin.js 根据这个答案,我也尝试了symlinking nodejs: $sudo ln -s /usr/bin/nodejs /usr/bin/node $jshint admin.js –verbose $jshint admin.js $jshint –help $man jshint No manual entry for jshint See ‘man 7 undocumented’ for help when […]

node:找不到命令

我不明白为什么node命令不起作用,而nodejs工作: $ node –version zsh: command not found: node $ nodejs –version v0.10.15 我尝试了apt-get install nodejs ,但已经安装了最新版本。 而且: $ npm zsh: command not found: npm 我认为npm包含在NodeJS> 0.10?

node.js冲突:/ sbin / node vs / usr / bin / node

我有两台Ubuntu 12.10机器:机器A是VMWare VM,机器B是旧Acer笔记本电脑。 在两台机器上,我使用apt-get安装了节点。 但是,机器A将主二进制文件安装为/usr/bin/node ,将机器B安装为/usr/bin/nodejs 。 以下是我观察到的一些行为: 两台机器都返回/usr/bin/node以响应which node命令。 但是,机器B上没有这样的文件。 发出命令node适用于机器A,而不是B.在B上,我必须使用nodejs 。 在B上,有一个名为/ sbin / node的二进制文件,A没有它。 在两台机器上开发时,这些行为会导致不一致问题。 现在,我通过在B上重命名二进制文件来解决这个问题: sudo mv /sbin/node /sbin/node-sbin sudo ln -s /usr/bin/nodejs /usr/bin/node 有没有办法真正解决这个问题,那么该节点将安装为/usr/bin/node而不是/usr/bin/nodejs ?

如何将nodeJS更新到最新版本?

我在Ubuntu上安装了nodeJS,代码如下 sudo apt-get install nodejs 由于我是ubuntu的新用户,我也运行了这个代码 sudo apt-get install npm 现在当我输入 nodejs –version 表明 v0.6.19 我检查并看到最新的nodeJS版本是0.10.26 如何将0.10.26版本更新为0.10.26 ? 我试过了 sudo apt-get install sudo apt-get install –only-upgrade 但没有运气。

如何安装最新版本的node.js?

如何在Ubuntu上安装最新的node.js ? 我一直在四处寻找,我找不到任何东西。 是否有node.js的Ubuntu包,还是我必须自己编译?