我想在我的系统上安装nodejs和npm软件包。我的最终目标是安装MJML。
我遵循了在nodejs网站上找到的步骤:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
但是,在终端上运行nodejs命令之后,
The program 'nodejs' is currently not installed. You can install it by typing:
sudo apt install nodejs
类似地,当我运行node时:
我在我的VPS服务器上运行Ubuntu18,我正在尝试运行NodeJS,然而,发生了这种情况:
seth@vps186104:~$ nodejs -v
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs
seth@vps186104:~$ sudo apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... D
我正在尝试为Node项目安装NodeMon。我试过通过npm安装。
npm安装
提供下列结果
npm WARN saveError ENOENT: no such file or directory, open '/Users/nodejs/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users//nod
已安装node.js,但显示
找不到命令nodejs,但可以使用以下命令进行安装:
sudo apt install nodejs
然后尝试,sudo apt install nodejs
并展示了
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (14.13.1-deb-1nodesource1).
0 upgraded, 0 newly installed, 0 to r
我试图安装最新版本的NodeJS (v6.9.1LTS和v7.1.0当前版本),但我无法安装,即使当我卸载nodeJS并重新安装它时,我仍然坚持使用v0.12.2? 作为一名.net程序员,我需要安装visual studio 2015,在安装visual studio 2015之后,我看到出现了nodeJS v0.12.2。 有谁知道吗?
我试过Install-Package nodejs,它似乎做了些什么:
PS C:\WINDOWS\system32> Install-Package nodejs
The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'chocolatey'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Hel
我正在尝试使用npm在我的笔记本上安装最新版本的nodejs。但是每次我尝试安装时,我都会收到这样的信息:
npm is known not to run on Node.js v4.2.6
Node.js 4 is supported but the specific version you're running has
a bug known to break npm. Please update to at least 4.7.0 to use this
version of npm. You can find the latest release of Node.js at h