Tôi đã theo dõi ý chính này https://gist.github.com/Goddard/5500157 để cài đặt nodejs và npm, nhưng sau khi chạy nó, không thể chạy nút --version hoặc npm --version, không tìm thấy lỗi của lệnh. Tôi đã có thể gỡ cài đặt nodejs, nhưng phải vào thư mục temp được mô tả trong tập lệnh và thực hiện gỡ cài đặt để khiến npm rời đi.
Bây giờ trong một nỗ lực để cài đặt nodejs và npm một lần nữa, tôi đã sử dụng liên kết này thay vì http://www.andreagrandi.it/2013/02/08/how-to-install-latest-urdy-node-js-on-ub Ubuntu / , nhưng nếu tôi thử và cài đặt cả nodejs và npm cùng nhau, tôi nhận được thông báo lỗi này.
sudo apt-get install nodejs npm
The following packages have unmet dependencies:
   nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
Nếu tôi chỉ cài đặt nodejs hoạt động tốt.
sudo apt-get install nodejs
node --version
v0.10.15
Nhưng bây giờ nếu tôi cố gắng cài đặt npm thì nó sẽ cho tôi thông báo lỗi này
sudo apt-get install npm 
The following packages have unmet dependencies:
npm : Depends: nodejs (>= 0.6.19~dfsg1-3) but it is not going to be installed
   Depends: nodejs-dev
   Depends: node-node-uuid but it is not going to be installed
   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.
Tôi đang sử dụng Ubuntu 13.04. Bất kỳ trợ giúp được đánh giá cao. Tôi không biết nhiều về node.js và npm. Tôi đã cố gắng bắt đầu học cách sử dụng những thứ này để có thể kinh nghiệm của tôi đang hiển thị.