killme2008 / node-zk-browser Goto Github PK
View Code? Open in Web Editor NEWA zookeeper web administrator in node.js
License: Apache License 2.0
A zookeeper web administrator in node.js
License: Apache License 2.0
我在shell 命令行输入 express是可以找到express,
但是
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/opt/install/node-zk-browser/app.js:25:15)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
For example, express is now v4 and everything is busted.
Just fyi, this does run on node 0.6.14.
Cheers,
D
PS If you have time, you should make this into an npm package:
$ npm install zk-browser
$ zk-browser --port 2181 --auth name:password
make: Entering directory `/opt/apps_install/node-zk-browser-0.1.0/node_modules/zookeeper/build'
ACTION binding_gyp_libzk_target_build_zk_client_lib .
Downloading zookeeper-3.4.3 from http://apache.mirrors.tds.net/zookeeper/zookeeper-3.4.3/zookeeper-3.4.3.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Unable to build zookeeper library
make: *** [.] Error 1
make: Leaving directory /opt/apps_install/node-zk-browser-0.1.0/node_modules/zookeeper/build' gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/apps_install/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 2.6.18-371.3.1.el5xen
gyp ERR! command "/opt/apps_install/node-v4.2.1-linux-x64/bin/node" "/opt/apps_install/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/apps_install/node-zk-browser-0.1.0/node_modules/zookeeper
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm info [email protected] Failed to exec install script
npm ERR! Linux 2.6.18-371.3.1.el5xen
npm ERR! argv "/opt/apps_install/node-v4.2.1-linux-x64/bin/node" "/opt/apps_install/node-v4.2.1-linux-x64/bin/npm" "install" "-d"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zookeeper 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 zookeeper
npm ERR! There is likely additional logging output above.
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm ERR! Please include the following file with any support request:
how to deal with it ?
if the request rul contain '#' the parameter is split ,need encodeURIComponent the request url params
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.