[英]Issue with node module timestampnotes “command not found”
I am attempting to use an npm module named timestamp notes. 我正在尝试使用名为timestamp notes的npm模块。
I have run the following 我已经运行了以下
$npm install timestampnotes
$timestamp
and I get 我得到
timestamp:126: command not found: slk
i then tried opening a node repl 然后我尝试打开一个节点repl
$node
>var timestamp = require('timestampnotes');
>timestamp()
and I get basically the same thing, any ideas? 和我基本上是一样的,有什么想法吗?
I came across a similar problem. 我遇到了类似的问题。 If you are running with zsh on your terminal as opposed to bash, you need to set your 'Shells open with:' option in the Preferences>General to Command (complete path) and set the path to
/bin/zsh
terminal Command 如果您在终端上使用zsh而不是bash运行,则需要在Preferences> General中将“ Shells with with”选项设置为Command(完整路径),并将路径设置为
/bin/zsh
terminal Command
The same needs to be done if you are running iTerm in place of your default Terminal. 如果要运行iTerm代替默认终端,则需要执行相同的操作。 You can find this also in your Preferences>Profiles>General and again set Command to
/bin/zsh
iTerm Command 您也可以在“首选项”>“配置文件”>“常规”中找到它,然后再次将Command设置为
/bin/zsh
iTerm Command
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.