Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スクリプトを何度もリロードしていますが、パス全体を提供する必要がないように、ノード repl が参照しているデフォルト ディレクトリを変更したいと考えています。
それは可能ですか?
node.js REPL は、相対パスを使用する場合、現在の作業ディレクトリ (REPL を呼び出したディレクトリ) をベースとして使用します。