I know this question has been asked lots of times like here and here. I have tried all suggestions on these links and more.. I tried installing the latest bunyan
sudo npm install [email protected] --unsafe-perm=true --allow-root
I installed and rebuilt latest dtrace-provider
sudo npm install [email protected] --unsafe-perm=true --allow-root
sudo npm rebuild [email protected] --unsafe-perm=true --allow-root
it built the module successfully.
+ NODE_GYP_STATUS=0
+ [[ 0 -ne 0 ]]
+ exit 0
touch Release/obj.target/ndtp.stamp
npm WARN [email protected] requires a peer of express@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
+ [email protected]
In spite of that I am still getting this error:
Error: Cannot find module './build/Release/DTraceProviderBindings'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/Users/yogeshsingh/TradeRev/code/tr-stack/node_modules/vogels/node_modules/dtrace-provider/dtrace-provider.js:17:23)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
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)
node version and npm version are as follows:
node: v11.6.0
npm : 6.5.0