Hexo个人博客搭建问题之 './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND'

来源:互联网 发布:学数据库有前途吗 编辑:程序博客网 时间:2024/06/03 19:40

搭建hero 完整教程:博客完整教程

在搭建hexo的时候: 出现了如下图的问题:

{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }Usage: hexo <command>Commands:  help     Get help on a command.  init     Create a new Hexo folder.  version  Display version information.Global Options:  --config  Specify config file instead of using _config.yml  --cwd     Specify the CWD  --debug   Display all verbose messages in the terminal  --draft   Display draft posts  --safe    Disable all plugins and scripts  --silent  Hide output on console

在网上找了很久,最后通过下面的方法成功了,在终端运行:

$ npm install hexo --no-optional


大功告成
2 0
原创粉丝点击