Weinre installation help

459 views
Skip to first unread message

AS4More

unread,
Feb 28, 2013, 3:47:01 AM2/28/13
to wei...@googlegroups.com
Okay so you downloaded nodeJS from nodejs.org onto Win7 64bit (no problem).
Run the command line one as administrator (no problem).
type 'npm install weinre' and it installs (no problem).
wei...@2.0.0-pre-HA5N9T49 node_modules\weinre
├── under...@1.3.3
├── coffee...@1.3.3
├── no...@1.0.10 (abb...@1.0.4)
└── exp...@2.5.11 (mi...@1.2.4, q...@0.4.2, mkd...@0.3.0, con...@1.9.2)

type node weinre (problem)
module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\Users\Noob\weinre'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Hmmm?
cd C:\Program Files\nodejs
^^[ENTER] {still not found}
Search the folder for weinre from there?
Not Found! (problem)
goto User Folder search weinre?
FOUND
cd C:\Users\Noob\node_modules\weinre
node weinre (SUCCESS)
2013-02-28T08:40:32.132Z weinre: starting server at http://localhost:8080

That was kind of painful... Anyway now it seems to be running.

[Had to try resorting to all this, since the phonegap server was unreliable (and ultimately in turn because android handles things differently enough then firefox {specifically outerHeight(true) is not subtree inclusive I thunk}).]



Patrick Mueller

unread,
Feb 28, 2013, 6:02:48 AM2/28/13
to wei...@googlegroups.com
weinre installs a 'bin', so after 'npm -g install weinre', you should be able to just run 'weinre' and it will work.  If you don't use a -g on your 'npm install', it will install locally, and the 'weinre' command won't be installed globally - you'll have to poke around a bit more to find it.
Reply all
Reply to author
Forward
0 new messages