internal/modules/cjs/loader.js:750 return process.dlopen(module, path.toNamespacedPath(filename));

Viewed 6319
internal/modules/cjs/loader.js:750
  return process.dlopen(module, path.toNamespacedPath(filename));
         ^

Error: Your organization used Device Guard to block this app. Contact your support person for 
more info.
\\?\C:\Users\C5281145\AppData\Roaming\sass-binary\win32-x64-67\binding.node
  at Object.Module._extensions..node (internal/modules/cjs/loader.js:750:18)
  at Module.load (internal/modules/cjs/loader.js:620:32)
  at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
  at Function.Module._load (internal/modules/cjs/loader.js:552:3)
  at Module.require (internal/modules/cjs/loader.js:657:17)
  at require (internal/modules/cjs/helpers.js:22:18)
  at module.exports (C:\SRM\SRM_Workspace\sr\infonet\src\main\resources\node\node_modules\node- 
  sass\lib\binding.js:19:10)
  at Object.<anonymous> 
  (C:\SRM\SRM_Workspace\sr\infonet\src\main\resources\node\node_modules\node- 
  sass\lib\index.js:14:35)
  at Module._compile (internal/modules/cjs/loader.js:721:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)

I have tried uninstalling node_modules and then running yarn command Tried everything on google.. Nothing worked for me

2 Answers

I had a similar issue while trying to execute this single nodejs script from Windows 10: const cv = require('opencv4nodejs');

The solution: to start the command line as an administrator, before issuing the command: node <yourScript>

Related