我从OSX的根目录运行npm安装-g生成器-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'当我尝试使用溜溜石时,我会得到:
-bash: yo: command not found我确实尝试过使用以下方法更新这些包:
npm update -g minimatch
npm update -g CSSselect
npm update -g CSSwhat如有任何建议,将不胜感激。
(PS I已安装Node 4.4.3和Mongo Shell 3.2.7 )
发布于 2016-06-21 20:18:08
你得到的信息是警告而不是错误。你可以无视他们。
看起来,您可能只安装了Yeoman的Keystone生成器,但没有安装yeoman包本身:
$ npm i yo -g它应该提供yo可执行文件(通常安装在/usr/local/bin中)。
https://stackoverflow.com/questions/37953481
复制相似问题