0
我使用這個tutorial安裝快車所以正在運行:快遞不到found` -bash:快遞:命令不found`
$ sudo npm install -g express
順利通過:
Password:
[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])
├── [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]
但是當我嘗試按照教程所述運行時:
$ express donuts
我得到:
-bash: express: command not found
我這麼想嗎?
express不會出現在$ PATH變量中。使用'export PATH = $ PATH:/ path/to/express /'將其位置導出到'PATH' varailbe – selyunin