Atom パッケージを作成し、ShellJSコマンドを取り込もうとしています。コマンドを使用したいのですが、exec()
毎回、すべてのコマンドに対して null を返しています。
shelljs = require 'shelljs/global'
console.log exec('which git').code // returns null
console.log which 'git' // returns the correct path
なぜ?
Atom パッケージを作成し、ShellJSコマンドを取り込もうとしています。コマンドを使用したいのですが、exec()
毎回、すべてのコマンドに対して null を返しています。
shelljs = require 'shelljs/global'
console.log exec('which git').code // returns null
console.log which 'git' // returns the correct path
なぜ?