node.js - Angular2 : concurrent is not recognized as internal or external command -


while running server angular2 using npm start giving error concurrent not recognized internal or external command, why happens these kind of error

here package.json:

{   "name": "contactlistapp",   "version": "1.0.0",   "description": "the app",   "scripts": {     "test": "echo \"error: no test specified\" && exit 1",     "tsc": "./node_modules/.bin/tsc",     "tsc:w": "./node_modules/.bin/tsc -w",     "serve": "./node_modules/.bin/live-server --host=localhost --port=3000 .",     "start": "concurrent \"npm run tsc:w\" \"npm run serve\" "   },   "author": "sarah",   "license": "isc",   "dependencies": {     "express": "^4.13.3",     "angular2": "2.0.0-beta.0",     "systemjs": "0.19.6",     "es6-promise": "^3.0.2",     "es6-shim": "^0.33.3",     "reflect-metadata": "0.1.2",     "rxjs": "5.0.0-beta.0",     "zone.js": "0.5.10"   },   "devdependencies": {     "concurrently": "^1.0.0",     "lite-server": "^1.3.1",     "typescript": "^1.7.3"   } } 

structure of project there node_module , typings folder there app.ts file server(empty express imported), , component.ts(and .js), tsconfig.json

concurrent not recognized internal or external command

must haven't ran npm install since added "concurrently": "^1.0.0" dependency.

live-server not recognized external or internal command

you installing lite-server :

"lite-server": "^1.3.1"

yet calling live-server:

"serve": "./node_modules/.bin/live-server --host=localhost --port=3000 ."

call lite-server instead.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -