Closed grillorafael closed 7 years ago
To use:
npm install and then npm start
npm install
npm start
This will create a server running on localhost:8080
localhost:8080
If npm start throw an error if bin not found you probably need to add local node_modules to your $PATH
$PATH
File to edit ~/.zshrc with content
~/.zshrc
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" PATH=$PATH:./node_modules/.bin export PATH=$PATH
Second line is what will solve the issue if it happens. After that you need to run source ~/.zshrc to reload this file.
source ~/.zshrc
This is an example but feel free to ask if something is not clear enough
If you want to try the changes you can do by running the following commands:
git remote update
git checkout npm-server
npm-server
To use:
npm install
and thennpm start
This will create a server running on
localhost:8080
If
npm start
throw an error if bin not found you probably need to add local node_modules to your$PATH
File to edit
~/.zshrc
with contentSecond line is what will solve the issue if it happens. After that you need to run
source ~/.zshrc
to reload this file.This is an example but feel free to ask if something is not clear enough