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.
我正在重新加载我的脚本,并且想更改 node repl 正在查看的默认目录,这样我就不必提供整个路径。
那可能吗?
当您使用相对路径时,node.js REPL 使用当前工作目录(您调用 REPL 的目录)作为基础。