/************************************************************************* * /usr/bin/env: node: No such file or directory * 說明: * 今天Charlie說cordova這個東西,然后嘗試去安裝了一下,結果遇到這個 * 錯誤,記錄一下解決辦法。 * * 2017-1-18 深圳 南山平山村 曾劍鋒 ************************************************************************/ 一、參考文檔: 1. cordova https://cordova.apache.org/ 2. run npm command gives error "/usr/bin/env: node: No such file or directory" #3911 https://github.com/nodejs/node-v0.x-archive/issues/3911 二、解決辦法: sudo apt-get install nodejs-legacy