SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Problems install dnode
-
Dec 29, 2012, 19:36 #1
- Join Date
- Jan 2009
- Location
- Australia
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problems install dnode
Hi Don,
I wondered if anyone else has reported problems installing dnode? I have skipped the part in chap 3 covering the http module and moved on for the moment as I couldn't find a solution to this error yet. Great if you have an idea of the prob.
Sam.
Code:gyp ERR! node -v v0.8.17-pre gyp ERR! node-gyp -v v0.8.2 gyp ERR! not ok npm ERR! weak@0.2.1 install: `node-gyp rebuild` npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1 npm ERR! npm ERR! Failed at the weak@0.2.1 install script. npm ERR! This is most likely a problem with the weak package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls weak npm ERR! There is likely additional logging output above.
-
Jan 5, 2013, 00:43 #2
- Join Date
- Nov 2012
- Posts
- 48
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
SaminOz, that portion is standalone so you can safely revisit later on. Can you let me know what OS you are running and would you be able include the full console output including the command?
-
Mar 20, 2013, 15:20 #3
- Join Date
- Nov 2012
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've been getting the same errors for installing dnode. I am getting this on Windows 7. Below is the whole console output for you...
Output:
PS C:\Users\smeyer\chapter03> npm install
npm WARN package.json nockmarket@0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/dnode/1.0.0
npm http 304 https://registry.npmjs.org/dnode/1.0.0
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/weak
npm http GET https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/dnode-protocol
npm http 304 https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/weak
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/traverse
> weak@0.2.1 install C:\Users\smeyer\chapter03\node_modules\dnode\node_modules\weak
> node-gyp rebuild
C:\Users\smeyer\chapter03\node_modules\dnode\node_modules\weak>node "C:\Program Files\nodejs\node_modules\npm\bin\node-g
yp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:113:
14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:82:11
gyp ERR! stack at Object.oncomplete (fs.js:93:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuil
d"
gyp ERR! cwd C:\Users\smeyer\chapter03\node_modules\dnode\node_modules\weak
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! weak@0.2.1 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the weak@0.2.1 install script.
npm ERR! This is most likely a problem with the weak package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls weak
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install"
npm ERR! cwd C:\Users\smeyer\chapter03
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\smeyer\chapter03\npm-debug.log
npm ERR! not ok code 0
-
Mar 20, 2013, 15:53 #4
- Join Date
- Nov 2012
- Posts
- 48
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
dnode is something that you can skip and come back to later if this part is holding you up
With respects to Node.js, Windows can be tricky operating system. This seems to be the relevant error:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
I would try installing Python 2.x. Also note the following:
https://github.com/TooTallNate/node-gyp/issues/103
One other possibility is installing
https://www.virtualbox.org/ + Ubuntu
It's relatively painless and will help bypass any potential Windows issues
-
Sep 4, 2013, 11:31 #5
- Join Date
- Feb 2013
- Posts
- 19
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Don,
Is unix still the better operating system for Node? Is unix always going to be better?
Thanks,
Eric
-
Sep 6, 2013, 00:11 #6
- Join Date
- Nov 2012
- Posts
- 48
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Better is a subjective word. Most of the projects that I do target Linux as the deployment operating system. Therefore using Linux as the development environment maximizes compatibility between dev and prod. If your target deployment environment is Windows, then a strong argument could be made for Windows being a "better" development environment.
Bookmarks