lwsjs / local-web-server

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

Issue with Running server #14

Closed mikich closed 9 years ago

mikich commented 9 years ago

Have an issues with running server...:

For the record, package.json looks like in a sample:

{
  "name": "web-sever",
  "version": "1.0.0",
  "scripts": {
    "start": "ws"
  }
}

When I trying to run in terminal, here what I get:

local-user-mac:ws local-user$ npm start

> web-sever@1.0.0 start /Users/local-user/work/ws
> ws

sh: ws: command not found

npm ERR! Darwin 13.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! web-sever@1.0.0 start: `ws`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the web-sever@1.0.0 start script 'ws'.
npm ERR! This is most likely a problem with the web-sever package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ws
npm ERR! You can get their info via:
npm ERR!     npm owner ls web-sever
npm ERR! There is likely additional logging output above.
75lb commented 9 years ago

Is ws definitely npm installed in the project? On 3 Apr 2015 18:08, "Michael" notifications@github.com wrote:

Have an issues with running server...:

For the record, package.json looks like in a sample:

{ "name": "web-sever", "version": "1.0.0", "scripts": { "start": "ws" } }

When I trying to run in terminal, here what I get:

local-user-mac:ws local-user$ npm start

web-sever@1.0.0 start /Users/local-user/work/ws> ws

sh: ws: command not found

npm ERR! Darwin 13.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v0.12.0 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE npm ERR! web-sever@1.0.0 start: ws npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the web-sever@1.0.0 start script 'ws'. npm ERR! This is most likely a problem with the web-sever package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ws npm ERR! You can get their info via: npm ERR! npm owner ls web-sever npm ERR! There is likely additional logging output above.

— Reply to this email directly or view it on GitHub https://github.com/75lb/local-web-server/issues/14.

75lb commented 9 years ago

i just tested this and it works fine for me..