我试图运行sudo apt-get install npm
它返回下面我这一对话。我该如何解决这个问题?命令和apt-get安装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 help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: node-gyp (>= 0.10.9) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
我想'当我们已经安装了'node'只能安装npm'。先尝试安装'node-gyp'。 – samAlvin
@samAlvin node-gyp需要安装npm。 'npm install -g node-gyp-install' – Tom