2015-02-10 12 views
6

Tôi đang cố gắng cài đặt Meteor-Up (mup) để triển khai một ứng dụng từ máy tính xách tay Ubuntu 14.04 của tôi lên máy chủ Ubuntu 14.04, nhưng dường như không cài đặt đúng. Làm thế nào tôi có thể cài đặt đúng mup?Làm cách nào để cài đặt Meteor-Up (mup) chính xác?

Tôi biết rằng tôi cần npm để cài đặt mup. NPM Vì vậy, tôi đã cài đặt thành công với:

$ sudo apt-get install npm 

Sau đó, tôi cố gắng để cài đặt mup với:

$ sudo npm install -g mup 

Cài đặt log:

npm http GET https://registry.npmjs.org/mup 
npm http 304 https://registry.npmjs.org/mup 
npm http GET https://registry.npmjs.org/nodemiral 
npm http GET https://registry.npmjs.org/cjson 
npm http GET https://registry.npmjs.org/colors 
npm http GET https://registry.npmjs.org/uuid 
npm http GET https://registry.npmjs.org/rimraf 
npm http GET https://registry.npmjs.org/underscore/1.7.0 
npm http 304 https://registry.npmjs.org/colors 
npm http 304 https://registry.npmjs.org/uuid 
npm http 304 https://registry.npmjs.org/rimraf 
npm http 304 https://registry.npmjs.org/nodemiral 
npm http 304 https://registry.npmjs.org/cjson 
npm http 304 https://registry.npmjs.org/underscore/1.7.0 
npm http GET https://registry.npmjs.org/jsonlint/1.6.0 
npm http GET https://registry.npmjs.org/ejs 
npm http GET https://registry.npmjs.org/debug 
npm http GET https://registry.npmjs.org/handlebars 
npm http 304 https://registry.npmjs.org/ejs 
npm http 304 https://registry.npmjs.org/handlebars 
npm http 304 https://registry.npmjs.org/debug 
npm http 304 https://registry.npmjs.org/jsonlint/1.6.0 
npm http GET https://registry.npmjs.org/nomnom 
npm http GET https://registry.npmjs.org/JSV 
npm http GET https://registry.npmjs.org/optimist 
npm http GET https://registry.npmjs.org/uglify-js 
npm http 304 https://registry.npmjs.org/nomnom 
npm http 304 https://registry.npmjs.org/JSV 
npm http 304 https://registry.npmjs.org/optimist 
npm http 304 https://registry.npmjs.org/uglify-js 
npm http GET https://registry.npmjs.org/underscore 
npm http GET https://registry.npmjs.org/chalk 
npm http GET https://registry.npmjs.org/wordwrap 
npm http GET https://registry.npmjs.org/async 
npm http GET https://registry.npmjs.org/source-map 
npm http 304 https://registry.npmjs.org/chalk 
npm http 304 https://registry.npmjs.org/underscore 
npm http GET https://registry.npmjs.org/has-color 
npm http GET https://registry.npmjs.org/ansi-styles 
npm http GET https://registry.npmjs.org/strip-ansi 
npm http 304 https://registry.npmjs.org/wordwrap 
npm http 304 https://registry.npmjs.org/strip-ansi 
npm http 304 https://registry.npmjs.org/async 
npm http 304 https://registry.npmjs.org/source-map 
npm http 304 https://registry.npmjs.org/ansi-styles 
npm http 304 https://registry.npmjs.org/has-color 
npm http GET https://registry.npmjs.org/amdefine 
npm http 304 https://registry.npmjs.org/amdefine 
/usr/local/bin/mup -> /usr/local/lib/node_modules/mup/bin/mup 
[email protected] /usr/local/lib/node_modules/mup 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
└── [email protected] ([email protected], [email protected], handlebars[email protected]) 

Sau này bất cứ khi nào tôi cố gắng sử dụng $ mup command hoặc $ mup -help (để kiểm tra xem nó đã được cài đặt đúng chưa), tôi nhận được thông báo sau:

/usr/bin/env: node: No such file or directory 

Tôi có thiếu một phần của quá trình cài đặt không, vì dường như nó nhận ra rằng mup là một lệnh? Tôi muốn biết cách khắc phục vấn đề này và giải thích về vấn đề sẽ là tiền thưởng. Cảm ơn bạn đã giúp đỡ!

Trả lời

7

Node.js chưa được cài đặt đúng cách, hãy kiểm tra kỹ xem bạn đã cài đặt đúng nút theo hướng dẫn này chưa.

Linux
Other Operating Systems

Node không được liên kết đúng cách, sử dụng lệnh này nên khắc phục điều đó. Nhưng một giải pháp tốt hơn là cài đặt lại Node.js từ các liên kết đó.

$ sudo ln -s /usr/bin/nodejs /usr/bin/node 

Bây giờ, công nhận các lệnh $ mup$ mup -help.

+0

tôi nhận lệnh không được tìm thấy cho lệnh trên – Chetan

+0

@Choan bạn đang sử dụng hệ điều hành nào? – DavidC

Các vấn đề liên quan