hexo Cannot find module './build/Release/DTraceProviderBindings'
程序员文章站
2022-05-30 21:09:18
...
有时候安装完hexo后, 执行命令的时候总是报错,但是不影响程序运行,但是。。。会逼死处女座,O(∩∩)O哈哈~)
报错如下:
{ Error: Cannot find module './build/Release/DTraceProviderBindings'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/xxx/Dropbox/hexo/node_modules/dtrace-provider/dtrace-provider.js:18:23)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/xxx/Dropbox/hexo/node_modules/bunyan/lib/bunyan.js:79:18)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/xxx/Dropbox/hexo/node_modules/hexo-log/lib/log.js:3:14)
at Module._compile (module.js:624:30) code: 'MODULE_NOT_FOUND' }
INFO Deleted database.
上面的错误看的非常的影响心情有木有?
找了网上的很多方法,最后选择了一种比较粗暴的方法
删除hexo目录下的node_modules
目录,之后执行以下命令:
npm install --registry=https://registry.npm.taobao.org
然后执行hexo server,就会惊喜的发现错误没有了 O(∩∩)O~~)
上一篇: Error: Cannot find module './build/Release/DTraceProviderBindings'
下一篇: 如何解决Cordova报错: Cannot find module '../plugman/platforms/ios'
推荐阅读
-
cannot find supercluster & native module cannot be null & Xcode build timeout
-
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
-
React create-react-app Build fails after eject: Cannot find module '@babel/plugin-transform-react-jsx'
-
Module build failed: Error: Cannot find module 'node-sass’
-
Module build failed: Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (
-
vue项目报错:”Module build failed: Error: Cannot find module ‘node-sass‘报错问题
-
npm run dev 报错 Module build failed: Error: Cannot find module 'prettier'
-
ionic build -- prod Error: Cannot find module ‘@angular/compiler-cli/ngtools2‘
-
Module build failed: Error: Cannot find module 'node-sass'
-
解决Module build failed: Error: Cannot find module ‘node-sass‘Require stack