vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Windows install via node command line fails #282

Open michaelkantor opened 11 years ago

michaelkantor commented 11 years ago

I'm pretty new to windows, so perhaps I'm missing something, but when I do

npm install -g scripted running on windows 7; node version 0.10.10, npm version 1.2.25, I get (error at the bottom):

C:\Users\mkantor>npm install -g scripted npm http GET https://registry.npmjs.org/scripted npm http 304 https://registry.npmjs.org/scripted npm http GET https://github.com/aclement/serv/archive/master.tar.gz npm http GET https://github.com/kdvolder/websocket-multiplex/archive/master.tar. gz npm http GET https://registry.npmjs.org/amdefine/0.0.2 npm http GET https://registry.npmjs.org/node-static/0.5.9 npm http GET https://registry.npmjs.org/enhanced-resolve/0.4.5 npm http GET https://registry.npmjs.org/json5/0.1.0 npm http GET https://registry.npmjs.org/htmlparser/1.7.6 npm http GET https://registry.npmjs.org/when/1.6.1 npm http GET https://registry.npmjs.org/express/3.0.6 npm http GET https://registry.npmjs.org/mime/1.2.9 npm http GET https://registry.npmjs.org/optimist/0.3.5 npm http GET https://registry.npmjs.org/sockjs/0.3.1 npm http GET https://registry.npmjs.org/bower/0.6.8 npm http GET https://registry.npmjs.org/formidable/1.0.9 npm http GET https://registry.npmjs.org/rest/0.8.4 npm http 304 https://registry.npmjs.org/enhanced-resolve/0.4.5 npm http 304 https://registry.npmjs.org/json5/0.1.0 npm http 304 https://registry.npmjs.org/amdefine/0.0.2 npm http 304 https://registry.npmjs.org/htmlparser/1.7.6 npm http 304 https://registry.npmjs.org/node-static/0.5.9 npm WARN package.json amdefine@0.0.2 No repository field. npm WARN package.json amdefine@0.0.2 No readme data. npm WARN package.json node-static@0.5.9 No repository field. npm http 304 https://registry.npmjs.org/when/1.6.1 npm http 304 https://registry.npmjs.org/express/3.0.6 npm http 304 https://registry.npmjs.org/mime/1.2.9 npm http 304 https://registry.npmjs.org/optimist/0.3.5 npm http 304 https://registry.npmjs.org/sockjs/0.3.1 npm WARN package.json enhanced-resolve@0.4.5 No repository field. npm WARN package.json when@1.6.1 No repository field. npm WARN package.json when@1.6.1 'repositories' (plural) Not supported. npm WARN package.json Please pick one as the 'repository' field npm http 304 https://registry.npmjs.org/bower/0.6.8 npm http 304 https://registry.npmjs.org/formidable/1.0.9 npm http 304 https://registry.npmjs.org/rest/0.8.4 npm WARN package.json bower@0.6.8 No repository field. npm WARN package.json formidable@1.0.9 No repository field. npm WARN package.json rest@0.8.4 No repository field. npm WARN package.json rest@0.8.4 'repositories' (plural) Not supported. npm WARN package.json Please pick one as the 'repository' field npm http 200 https://github.com/aclement/serv/archive/master.tar.gz npm http 200 https://github.com/kdvolder/websocket-multiplex/archive/master.tar. gz npm http GET https://registry.npmjs.org/open npm http GET https://registry.npmjs.org/livereload-server npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/wordwrap npm http GET https://registry.npmjs.org/cookie-signature/0.0.1 npm http GET https://registry.npmjs.org/range-parser/0.0.4 npm http GET https://registry.npmjs.org/commander/0.6.1 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/connect/2.7.2 npm http GET https://registry.npmjs.org/fresh/0.1.0 npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1 npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/cookie/0.0.5 npm http GET https://registry.npmjs.org/send/0.1.0 npm http GET https://registry.npmjs.org/mkdirp/0.3.3 npm http GET https://registry.npmjs.org/rbytes/0.0.2 npm http GET https://registry.npmjs.org/node-uuid/1.3.3 npm http GET https://registry.npmjs.org/faye-websocket/0.4.0 npm http 304 https://registry.npmjs.org/livereload-server npm http 304 https://registry.npmjs.org/open npm http 304 https://registry.npmjs.org/express npm http 304 https://registry.npmjs.org/range-parser/0.0.4 npm http 304 https://registry.npmjs.org/commander/0.6.1 npm WARN package.json range-parser@0.0.4 No repository field. npm http 304 https://registry.npmjs.org/wordwrap npm http 304 https://registry.npmjs.org/connect/2.7.2 npm http 304 https://registry.npmjs.org/methods/0.0.1 npm http 304 https://registry.npmjs.org/fresh/0.1.0 npm WARN package.json methods@0.0.1 No repository field. npm WARN package.json methods@0.0.1 No readme data. npm WARN package.json fresh@0.1.0 No repository field. npm http 304 https://registry.npmjs.org/buffer-crc32/0.1.1 npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/cookie/0.0.5 npm http 304 https://registry.npmjs.org/send/0.1.0 npm http 304 https://registry.npmjs.org/cookie-signature/0.0.1 npm http 304 https://registry.npmjs.org/mkdirp/0.3.3 npm http 304 https://registry.npmjs.org/rbytes/0.0.2 npm http 304 https://registry.npmjs.org/faye-websocket/0.4.0 npm http 304 https://registry.npmjs.org/node-uuid/1.3.3 npm WARN package.json cookie-signature@0.0.1 No repository field. npm WARN package.json send@0.1.0 No repository field. npm WARN package.json rbytes@0.0.2 No repository field. npm WARN package.json faye-websocket@0.4.0 No repository field. npm WARN package.json faye-websocket@0.4.0 'repositories' (plural) Not supported . npm WARN package.json Please pick one as the 'repository' field npm http GET https://registry.npmjs.org/websocket.io npm http GET https://registry.npmjs.org/livereload-protocol npm http GET https://registry.npmjs.org/mime/1.2.6

rbytes@0.0.2 install C:\Users\mkantor\AppData\Roaming\npm\node_modules\scripte d\node_modules\sockjs\node_modules\rbytes node-waf configure build

npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/mime/1.2.4 npm http GET https://registry.npmjs.org/mkdirp/0.3.0 'node-waf' is not recognized as an internal or external command, operable program or batch file. npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/mkdirp npm WARN optional dep failed, continuing rbytes@0.0.2 npm http 304 https://registry.npmjs.org/websocket.io npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/tar npm http GET https://registry.npmjs.org/vows npm http GET https://registry.npmjs.org/unzip/0.0.4 npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/read-package-json npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/tmp npm http GET https://registry.npmjs.org/archy npm http GET https://registry.npmjs.org/glob npm http GET https://registry.npmjs.org/hogan.js npm http GET https://registry.npmjs.org/stable npm http GET https://registry.npmjs.org/fstream npm http GET https://registry.npmjs.org/rc npm WARN package.json websocket.io@0.2.1 No repository field. npm http 304 https://registry.npmjs.org/mime/1.2.6 npm http 304 https://registry.npmjs.org/livereload-protocol npm http 304 https://registry.npmjs.org/mkdirp/0.3.0 npm http GET https://registry.npmjs.org/lodash npm http GET https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/rimraf npm WARN package.json connect@1.9.2 No readme data. npm http GET https://registry.npmjs.org/ws/0.4.20 npm http 304 https://registry.npmjs.org/vows npm http 304 https://registry.npmjs.org/semver npm http 304 https://registry.npmjs.org/tar npm WARN package.json vows@0.6.4 No repository field. npm http 304 https://registry.npmjs.org/unzip/0.0.4 npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/qs/0.5.1 npm http GET https://registry.npmjs.org/bytes/0.1.0 npm http GET https://registry.npmjs.org/formidable/1.0.11 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/read-package-json npm http 304 https://registry.npmjs.org/mime/1.2.4 npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/tmp npm http 304 https://registry.npmjs.org/archy npm http 304 https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/hogan.js npm http 304 https://registry.npmjs.org/fstream npm http 304 https://registry.npmjs.org/stable npm http 304 https://registry.npmjs.org/rc npm http 304 https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/ws/0.4.20 npm http 304 https://registry.npmjs.org/qs/0.5.1 npm http 304 https://registry.npmjs.org/bytes/0.1.0 npm http 304 https://registry.npmjs.org/formidable/1.0.11 npm http 304 https://registry.npmjs.org/pause/0.0.1 npm WARN package.json bytes@0.1.0 No repository field. npm WARN package.json formidable@1.0.11 No repository field. npm WARN package.json pause@0.0.1 No repository field. npm http GET https://registry.npmjs.org/config-chain npm http GET https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/pullstream/0.0.4 npm http GET https://registry.npmjs.org/binary npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/npmlog npm http GET https://registry.npmjs.org/slide npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/block-stream npm http 304 https://registry.npmjs.org/config-chain npm http 304 https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/diff npm http GET https://registry.npmjs.org/eyes npm http 304 https://registry.npmjs.org/pullstream/0.0.4 npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/binary npm http GET https://registry.npmjs.org/options npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/slide npm http 304 https://registry.npmjs.org/npmlog npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/block-stream npm http 304 https://registry.npmjs.org/diff npm http 304 https://registry.npmjs.org/eyes npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/tinycolor npm WARN package.json eyes@0.1.8 No repository field. npm http GET https://registry.npmjs.org/over npm http GET https://registry.npmjs.org/stream-buffers npm http GET https://registry.npmjs.org/ini npm http GET https://registry.npmjs.org/proto-list

ws@0.4.20 install C:\Users\mkantor\AppData\Roaming\npm\node_modules\scripted\n ode_modules\serv\node_modules\livereload-server\node_modules\websocket.io\node_m odules\ws node install.js

npm http GET https://registry.npmjs.org/sigmund [ws v0.4.20] Attempting to compile blazing fast native extensions. npm http GET https://registry.npmjs.org/ansi npm http GET https://registry.npmjs.org/chainsaw npm http GET https://registry.npmjs.org/buffers npm http 304 https://registry.npmjs.org/proto-list npm http 304 https://registry.npmjs.org/stream-buffers npm http 304 https://registry.npmjs.org/over npm http 304 https://registry.npmjs.org/ini npm http 304 https://registry.npmjs.org/ansi npm http 304 https://registry.npmjs.org/chainsaw npm http 304 https://registry.npmjs.org/buffers npm http 304 https://registry.npmjs.org/sigmund npm http GET https://registry.npmjs.org/traverse [ws v0.4.20] Native code compile failed (but the module will still work): [ws v0.4.20] The native extensions are faster, but not required. [ws v0.4.20] On Windows, native extensions require Visual Studio and Python. [ws v0.4.20] On Unix, native extensions require Python, make and a C++ compiler.

[ws v0.4.20] Start npm with --ws:verbose to show compilation output (if any). npm http 304 https://registry.npmjs.org/traverse

bower@0.6.8 postinstall C:\Users\mkantor\AppData\Roaming\npm\node_modules\scri pted\node_modules\bower node cleanup

events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) npm ERR! weird error 8 npm ERR! not ok code 0

aclement commented 11 years ago

You may have luck installing from master: npm install -g https://github.com/scripted-editor/scripted/tarball/master

We know that the 0.4 release has problems with Node 0.10 (so an alternative workaround is to downgrade to node 0.8) - I believe it is the old version of bower we have been using.

We hope to have a Scripted 0.5 out soon with the fix in it.

mchirkov commented 11 years ago

I think it worse to state on home page, to not use the latest version of nodejs.

And I tried master version but without success. (Linux Mint 15)

Nodejs: v0.10.12

ws@0.4.20 install /usr/lib/node_modules/scripted/node_modules/serv/node_modules/livereload-server/node_modules/websocket.io/node_modules/ws node install.js

[ws v0.4.20] Attempting to compile blazing fast native extensions. [ws v0.4.20] Native extension compilation successful! npm http 304 https://registry.npmjs.org/traverse /usr/bin/scr -> /usr/lib/node_modules/scripted/bin/scr /usr/bin/scripted -> /usr/lib/node_modules/scripted/bin/scripted

scripted@0.4.0 postinstall /usr/lib/node_modules/scripted cd client && bower install

bower cloning git://github.com/cujojs/wire.git

/usr/lib/node_modules/scripted/node_modules/bower/node_modules/tmp/lib/tmp.js:260 throw err; ^ Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) npm ERR! weird error 7 npm ERR! not ok code 0

KidSysco commented 11 years ago

I have been getting the same thing for many months. On both Ubuntu 13.04 and Windows 7. I really, really enjoyed using scripted while it worked for me. I would love to use it again someday. I will watch the project for now and see how it goes. If you need any testers, feel free to ask.

michaelkantor commented 11 years ago

Completely uninstalling node and then installing the version recommended on the scripted github page should address this. Correctly uninstalling node may be harder than necessary though.

bkbonner commented 11 years ago

I'm seeing the same result as https://github.com/scripted-editor/scripted/issues/282#issuecomment-19872190 trying to install it on Windows. :frowning:

This is a roadblock to getting more users of Scripted onboard.