Tôi đã cài đặt nhanh, và nó chỉ làm việc tốt:Node.js: thể hiện không hoạt động?
...
npm http 200 https://registry.npmjs.org/send/-/send-0.1.4.tgz
npm http GET https://registry.npmjs.org/fresh/0.2.0
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http 304 https://registry.npmjs.org/fresh/0.2.0
npm http GET https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
[email protected] /usr/local/lib/node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected])
Nhưng sau đó tôi làm:
express testapp
-bash: express: command not found
Đó là nếu rõ ràng là không được cài đặt. Có chuyện gì thế?
Chỉ cần thông tin, tôi có OSX nếu điều đó có khác biệt gì không?
bạn đã sử dụng -g khi bạn cài đặt? – duncan
Đã thử với -g và không có nó. Với sudo và không có nó. – R0b0tn1k
Sẽ không hoạt động nếu không có sudo ... – R0b0tn1k