How to install base64 module on Windows

624 views
Skip to first unread message

NoAnyLove

unread,
Dec 29, 2011, 8:19:43 PM12/29/11
to nodejs
I wanna install base64 on my Windows system, but when I use command
"npm install base64" , It show like this:

D:\WorkSpace\vnc.js>npm install base64
npm http GET https://registry.npmjs.org/base64
npm http 304 https://registry.npmjs.org/base64

> bas...@2.0.3 install D:\WorkSpace\vnc.js\node_modules\base64
> node-waf configure build

'node-waf' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! error installing bas...@2.0.3
npm ERR! bas...@2.0.3 install: `node-waf configure build`
npm ERR! `cmd "/c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the bas...@2.0.3 install script.
npm ERR! This is most likely a problem with the base64 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls base64
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\Networking\\nodejs\\\\node.exe" "D:\\Networking\
\nodejs\\n
ode_modules\\npm\\bin\\npm-cli.js" "install" "base64"
npm ERR! cwd D:\WorkSpace\vnc.js
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! code ELIFECYCLE
npm ERR! message bas...@2.0.3 install: `node-waf configure build`
npm ERR! message `cmd "/c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\WorkSpace\vnc.js\npm-debug.log
npm not ok

It seems that there isn't a command named node-waf on Windows, I need
some help.

mscdex

unread,
Dec 29, 2011, 9:19:59 PM12/29/11
to nodejs
On Dec 29, 8:19 pm, NoAnyLove <noanyl...@gmail.com> wrote:
> I wanna install base64 on my Windows system, but when I use command
> "npm install base64" , It show like this:

Why not use node's built-in base64 encoding via Buffers?:

var encoded = new Buffer("foobarbaz").toString('base64');

NoAnyLove

unread,
Dec 30, 2011, 4:14:36 AM12/30/11
to nodejs
I wanna try vnc.js, and this project use base64 module. I found that
the npm just download the source code of base64 module, and most
Winodws systems haven't configure a compiler for it. Why not provide
compiled binary module for Windows users ?
Reply all
Reply to author
Forward
0 new messages