我試圖運行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