singpath / classmentors

Class Mentors UI
http://www.classmentors.com
MIT License
0 stars 8 forks source link

npm start fails to run on Windows OS #30

Closed kuanyonglee closed 8 years ago

kuanyonglee commented 8 years ago

Hello!

npm start fails to start on windows OS and produces this error

C:\Users\Kuan Yong\Documents\Uni Documents\Year 3 Sem 1\IS480\classmentors>npm start

> classmentors@0.5.0 start C:\Users\Kuan Yong\Documents\Uni Documents\Year 3 Sem 1\IS480\classmentors
> ./bin/server.js src/

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! classmentors@0.5.0 start: `./bin/server.js src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the classmentors@0.5.0 start script './bin/server.js src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the classmentors package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./bin/server.js src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs classmentors
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls classmentors
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Kuan Yong\Documents\Uni Documents\Year 3 Sem 1\IS480\classmentors\npm-debug.log

node version: v6.2.2 npm version: 3.9.5

dinoboff commented 8 years ago

Are you running those command in a bash terminal, like the one usually provided with Git?

dinoboff commented 8 years ago

It doesn't matter which shell is used to run npm. Npm will run the run-script commands with "cmd" on windows; the commands calling a script should not rely on the shebang.

In the meantime, you can run the command as node bin/server.js src/ from bash (from cmd or powershell, it's properly node bin\server.js src\)

dinoboff commented 8 years ago

@hiddenmirage Can you please pull the last changes and test the start and build command?

git pull https://github.com/singpath/classmentors.git master
npm run build
npm start
kuanyonglee commented 8 years ago

@dinoboff hi, sry for the late reply. I got it working already! Thanks!