Answer the question
In order to leave comments, you need to log in
How to install ws module for Node.JS on Windows 7 x64?
The problem is this. Installed Node.JS on windows 7 x64.
The ws module does not want to be installed.
Here is the output from cmd. Cmd run as administrator.
C:\Program Files\nodejs\node_modules\npm>npm install --ws:verbose
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported. Please p
ick one as the 'repository' field
|
> [email protected] prepublish C:\Program Files\nodejs\node_modules\npm
> node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modul
es && make -j32 doc
"rm" is not an internal or external
command, operable program, or batch file.
npm ERR! [email protected] prepublish: `node bin/npm-cli.js prune --prefix=. --no-globa
l && rm -rf test/*/*/node_modules &&
make -j32 doc` npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script.
npm ERR! This is most likely a problem with the npm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodebin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*
/node_modules && make -j32 doc
npm ERR! You can get their info via:
npm ERR! npm owner ls npm
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\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--ws:verbose"
npm ERR! cwd C:
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\node_modules\npm\npm-debug.log
npm ERR! not ok code 0
Answer the question
In order to leave comments, you need to log in
Well, apparently, the build script uses the rm shell command, which is not in windows. Try using cygwin as a console, its coreutils package has the rm command.
In general, there are a lot of rakes regarding this. I would advise you to install Vagrant and continue developing in a Debian or Ubuntu virtual machine.
There are a lot of troubles on Windows.
To begin with, you need to leave only Python 2.7, I did not prescribe the path, net framework sdk 4.5 is also necessary, visual studio 2008 express (comes with the shel integrator), visual c ++ 2010.
After such "dances" it worked for me. It should be noted that some modules on Windows are not installed locally at all, you must use the -g switch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question