节点模块 timestampnotes 问题 "command not found"

Issue with node module timestampnotes "command not found"

我正在尝试使用名为 timestamp notes 的 npm 模块。

我有运行以下

$npm install timestampnotes

$timestamp

然后我得到

timestamp:126: command not found: slk

然后我尝试打开一个节点 repl

$node

>var timestamp = require('timestampnotes');

>timestamp()

我得到的结果基本相同,有什么想法吗?

我遇到了类似的问题。如果您在终端上使用 运行 zsh 而不是 bash,则需要在 Preferences>General to Command(完整路径)中设置 'Shells open with:' 选项并将路径设置为 /bin/zshterminal Command

如果您使用 运行 iTerm 代替默认终端,则需要执行相同的操作。您也可以在首选项>配置文件>常规中找到它,然后再次将命令设置为 /bin/zsh iTerm Command