0
私は、次の内容を持っているスクリプトhello
を持っている:私は./hello
でそれを実行しノードのシェルスクリプトでそのようなファイルまたはディレクトリ
#!/usr/bin/env node
console.log('hello there!');
、I取得するには、次の出力:
$ ./hello
: No such file or directory
node ./hello
で実行すると、次の出力が得られます。
$ ./hello
hello there!
これはUbuntu 16.04にあります。
私はそれを再現できません。 (ちょうど試した、働いた) – SPillai
chmod + x helloを実行しましたか? – Will
@ JamesMongerあなたが追加しようとしているOSはどれですか? –