簡體   English   中英

ubuntu 12.04 LTS中未安裝npm

[英]npm not installed in ubuntu 12.04 LTS

pp@pp-desktop:~$ sudo apt-get install npm

正在讀取包列表...完成構建依賴關系樹
讀取狀態信息...完成無法安裝某些軟件包。 這可能意味着您請求了一個不可能的情況,或者如果您使用的不穩定發行版中尚未創建某些必需的軟件包或將其從“傳入”中移出。 以下信息可能有助於解決這種情況:

The following packages have unmet dependencies:
 npm : Depends: nodejs but it is not going to be installed
       Depends: nodejs-dev
       Depends: node-request but it is not going to be installed
       Depends: node-mkdirp but it is not going to be installed
       Depends: node-minimatch but it is not going to be installed
       Depends: node-semver but it is not going to be installed
       Depends: node-ini but it is not going to be installed
       Depends: node-graceful-fs but it is not going to be installed
       Depends: node-abbrev but it is not going to be installed
       Depends: node-nopt but it is not going to be installed
       Depends: node-fstream but it is not going to be installed
       Depends: node-rimraf but it is not going to be installed
       Depends: node-tar but it is not going to be installed
       Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我通常在Ubuntu中安裝NodeJS和NPM,並遵循本教程( 如何使用PPA進行安裝 ): https : //www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an- Ubuntu的14-04服務器

我已經在Ubuntu 12.04 LTS中嘗試了它,沒有問題。

警告嘗試在干凈的Ubuntu中安裝。

希望這對你有用!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM