mapbox / mason

Cross platform package manager for C/C++ apps
BSD 2-Clause "Simplified" License
254 stars 69 forks source link

node_asan npm broken on OS X #191

Closed springmeyer closed 7 years ago

springmeyer commented 8 years ago

Seeing this for unknown reasons:

module.js:327
    throw err;
    ^
Error: Cannot find module 'npmlog'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /Users/travis/build/mapbox/node-cpp-skel/mason_packages/osx-x86_64/node_asan/4.4.5/bin/npm:19:11
    at Object.<anonymous> (/Users/travis/build/mapbox/node-cpp-skel/mason_packages/osx-x86_64/node_asan/4.4.5/bin/npm:76:3)
mikemorris commented 8 years ago

Huh, I didn't really notice this when I used it, i guess because I just used my regular version of Node.js/npm to install everything, then called the asan node binary directly to run.

springmeyer commented 7 years ago

no longer actionable. Building node with asan is not longer needed for the use case that drove my interest - recent versions of clang++/compiler-rt allow using LD_PRELOAD to push the sanitizer shared libraries into the process such that you can now instrument a node C++ addon and effectively test it with an uninstrumented node.