lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.21k stars 85 forks source link

Hide alpha versions from npm #24

Closed raphinesse closed 8 years ago

raphinesse commented 8 years ago

IMHO alpha versions shouldn't install when using npm without version specifier.

75lb commented 8 years ago

which version of npm are you on? as install behaviour changed recently regarding prerelease versions.. https://github.com/npm/npm/releases/tag/v3.4.1

i have forcefully set local-web-server@0.5.23 to be the latest version on npm.. so this alpha release will no longer be installed unless specifically requested.

thank you for highlighting this :+1:

raphinesse commented 8 years ago

I was on npm 2.7.0. Verified that it installs local-web-server@0.5.23 now. Thanks!

75lb commented 8 years ago

good.. incidentally, did you have any issues with the alpha release? feedback welcome..

raphinesse commented 8 years ago

Yes, when I tried to run the alpha4 I got this error

$ ws
module.js:340
    throw err;
    ^

Error: Cannot find module 'ansi-escape-sequences'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/lib/node_modules/local-web-server/bin/cli.js:6:14)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Function.Module.runMain (module.js:457:10)
75lb commented 8 years ago

jeez.. i didn't spot this as npm3 doesn't throw or flag the module as missing.. fixed in 1.0.0-alpha.7, thanks..

raphinesse commented 8 years ago

you're welcome