错误在OSX上安装KeystoneJS

时间:2016-06-21 19:56:36

标签: node.js npm keystonejs

我从OSX的根目录运行了npm install -g generator-keystone但是出现了以下错误:

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'

当我尝试使用你的keystone时,我得到:

-bash: yo: command not found

我确实尝试使用以下方法更新这些软件包:

npm update -g minimatch
npm update -g CSSselect
npm update -g CSSwhat

非常感谢任何建议。

(PS我安装了Node 4.4.3和Mongo Shell 3.2.7)

1 个答案:

答案 0 :(得分:1)

您收到的消息是警告,而不是错误。你可以忽略它们。

看起来你可能只为Yeoman安装了Keystone生成器,但没有自己安装yeoman包:

$ npm i yo -g

那应该提供yo可执行文件(通常安装在/usr/local/bin中)。

相关问题