Thursday 28 February 2019

I am a node.js beginner and trying to setup a project but getting an error.Please Help.

I am trying to run a project name StageMate ( https://github.com/Langhalsdino/StageMate ) but getting an error while starting node.js server .When I run the command npm start I got an error " cannot find the path specified" .The content of package.json is as follows:​{ "name": "StageMate", "version": "1.0.0", "description": "Intelligent presentation framework", "main": "index.js", "scripts": { "build-stage-mate": "cd stageMateApp; webpack", "start": "npm run build-stage-mate && node index.js" }, "author": "Timo, Enrico, Frederic, Jonas", "license": "MIT", "dependencies": { "angular": "^1.6.6", "angular-chart.js": "^1.1.1", "body-parser": "^1.18.2", "chart.js": "^2.7.0", "css-loader": "^0.28.7", "express": "^4.16.1", "mustache": "^2.3.0", "node-sass": "^4.5.3", "node-uuid": "^1.4.8", "raw-loader": "^0.5.1", "reveal.js": "^3.5.0", "sass-loader": "^6.0.6", "socket.io": "^2.0.3", "style-loader": "^0.19.0", "webpack": "^3.6.0", "ws": "^3.2.0" } This line ("build-stage-mate": "cd stageMateApp; webpack") is causing problem.And when i remove webpack and change the above line to ("build-stage-mate": "cd stageMateApp") The server gets started but shows a blank page on localhost.Steps I followed so far: 1. Cloned github project. 2. inside node.js directory --> npm installI also installed weback inside node.js directory. But when i tried to do same inside " stageMateApp " directory it shows error related to node-sass.Please guide what i am doing wrong ?? Does webpack needed to be installed separately , as inside stageMateApp directory there is file name webpak.config.js.Please help me to resolve this issue.

Submitted February 28, 2019 at 02:39PM by The_Alchemist_27

No comments:

Post a Comment