安装参考:

http://keystonejs.com/zh/getting-started/

http://jsnoder.com/kjs/quickstart

安装前提条件:

安装 Node.JS 、MongoDB、Python(2.0.0版本)、C++编译器(visual studio) 

如果没有安装 Python(或者没有把安装路径加到PATH系统变量) ,运行 yo keystone 命令过程中,会有出错提示

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.  

运行 node keystone  失败 Error: Cannot find module 'keystone'

如果没有安装C++编译器(visual studio) ,运行 yo keystone 命令过程中,会有出错提示

 TRACKER : 错误 TRK0005: 未能找到:“CL.exe”。系统找不到指定的文件。

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targ ets(347,5): error MSB6006: “CL.exe”已退出,代码为 5。

gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1  

运行 node keystone  失败 Error: Cannot find module 'keystone'

安装过程中:

还是会有有关C++编译方面的警告,但最终运行 node keystone 成功

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-08-26
  • 2021-12-04
  • 2021-05-09
  • 2021-07-24
  • 2021-12-18
  • 2021-12-03
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2021-06-15
  • 2021-07-09
  • 2022-02-20
  • 2021-10-03
  • 2021-12-08
相关资源
相似解决方案