在 OSX 上安装 KeystoneJS 时出错
Errors Installing KeystoneJS on OSX
我在 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'
当我尝试使用 yo 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)
您收到的消息是警告,而不是错误。你可以忽略它们。
看起来您可能只安装了 Yeoman 的 Keystone 生成器,但没有安装 yeoman
包本身:
$ npm i yo -g
那应该提供 yo
可执行文件(通常安装在 /usr/local/bin
中)。
我在 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'
当我尝试使用 yo 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)
您收到的消息是警告,而不是错误。你可以忽略它们。
看起来您可能只安装了 Yeoman 的 Keystone 生成器,但没有安装 yeoman
包本身:
$ npm i yo -g
那应该提供 yo
可执行文件(通常安装在 /usr/local/bin
中)。