0
我通過npm
安裝了兩個包 「沒有這樣的文件或目錄」 具有一定的包:節點
由於我使用nvm
來管理我的node
版本中,這兩個軟件包的CLI文件安裝在以下路徑:
/home/james/.nvm/versions/node/v6.3.1/lib/alsatian/cli/alsatian-cli.js
/home/james/.nvm/versions/node/v6.3.1/lib/gulp/bin/gulp.js
當我運行命令gulp
,該命令可以正常運行。然而,當我運行命令alsatian
我得到以下輸出:
: No such file or directory
我換成下面的代碼都CLI文件:
#!/usr/bin/env node
"use strict";
console.log("If you see this, it worked!");
當我輸入命令gulp
,我得到的消息If you see this, it worked!
。但是,當我輸入命令alsatian
時,我收到的消息與之前一樣,爲No such file or directory
。
使用which
命令我敢肯定,我已經修改的文件是包的正確文件,並通過使用stat
命令,我可以看到我對包文件相同的權限。