trying to install Edgejs on a Windows 7 x86 system

I am following these instructions:

All the prerequisites are installed. When running tools\buildall.bat I get:
    throw err;
Error: Cannot find module 'nan'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at [eval]:1:1
    at Object.exports.runInThisContext (vm.js:74:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:460:26)
    at evalScript (node.js:431:25)
    at startup (node.js:90:7)
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to
load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\User\AppData\Roaming\npm\n
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:754:
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Temp\\Edge\\edge-master\\tools\\\\..\\lib\\native\\win32\\
ia32\\0.10.0\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\n
ode-gyp\\bin\\node-gyp.js" "configure" "build" "--msvs_version=2013" "-release"
gyp ERR! cwd C:\Temp\Edge\edge-master
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Error building edge.node release for node.js x86 v0.10.0
Building edge.node release for node.js x86 v0.12.0

Open in new window

Nan is installed with:
npm install nan -g

Open in new window

Verified with:
npm list -g
├── nan@1.8.4
├─┬ node-gyp@2.0.1
... etc...

Open in new window

Still getting the error.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Since no "-g" parameter is specified "node" operates in "local" mode by default.
So it does not find any global modules.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itniflAuthor Commented:
Are you saying I need to install nan locally? What is the point of global modules if they are not reached by default?
run "npm list" to be in situation where node is
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

itniflAuthor Commented:
I installed nan locally, the build then proceeded successfully after that. Thank you.
It is very unstable on Linux too. Especially minimal upgrades may change principle of choice of library paths etc.
Just a warning to not do any in-place upgrades...
itniflAuthor Commented:
Thank you..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.