Skip to content

$ npm run devserver is not working #3

Open

Description

@ipyana

Unfortunately am getting these errors when cloned the project and follow all the steps on setting environment for Node and its dependencies.

Screen Shot 2020-03-24 at 7 21 48 PM

Screen Shot 2020-03-24 at 7 28 16 PM

Screen Shot 2020-03-24 at 7 37 51 PM

Activity

  1. saleh-dot commented on Sep 22, 2020

    @saleh-dot

    you have to kill port and then restart
    you can do this in command prompt or using same terminal first have to change directory to /c

  2. saleh-dot commented on Sep 22, 2020

    @saleh-dot

    netstat -ano | findstr :3000
    this will give you PID 4 digit number at end

  3. saleh-dot commented on Sep 22, 2020

    @saleh-dot

    taskkill /PID "PID" /F
    "PID" will be from "netstat -ano | findstr :3000"

  4. Savics407 commented on Oct 9, 2020

    @Savics407

    I am also having similar problem, having cloned the repo, it doesn't display on web browser when I type in log as shown in the video tutorial

  5. mmaio79 commented on Feb 9, 2021

    @mmaio79

    Same problem -

    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./app/styles/main.scss
    Module build failed: Error: Cannot find module 'node-sass'
    Require stack:
    - C:\Users\--\NELSON\javascript\node_modules\sass-loader\lib\loader.js
    - C:\Users\--\NELSON\javascript\node_modules\loader-runner\lib\loadLoader.js
    - C:\Users\--\NELSON\javascript\node_modules\loader-runner\lib\LoaderRunner.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack\lib\NormalModule.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack\lib\NormalModuleFactory.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack\lib\Compiler.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack\lib\webpack.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack-dev-server\lib\Server.js
    - C:\Users\-\NELSON\javascript\node_modules\webpack-dev-server\bin\webpack-dev-server.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
        at Function.Module._load (internal/modules/cjs/loader.js:725:27)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (C:\Users\-\NELSON\javascript\node_modules\sass-loader\lib\loader.js:3:14)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
        at Module.load (internal/modules/cjs/loader.js:928:32)
        at Function.Module._load (internal/modules/cjs/loader.js:769:14)
        at Module.require (internal/modules/cjs/loader.js:952:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at loadLoader (C:\Users\-\NELSON\javascript\node_modules\loader-runner\lib\loadLoader.js:18:17)
        at iteratePitchingLoaders (C:\Users\-\NELSON\javascript\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
        at iteratePitchingLoaders (C:\Users\-\NELSON\javascript\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
        at C:\Users\-\NELSON\javascript\node_modules\loader-runner\lib\LoaderRunner.js:176:18
        at loadLoader (C:\Users\-\NELSON\javascript\node_modules\loader-runner\lib\loadLoader.js:47:3)
     @ ./app/styles/main.scss 4:14-122
     @ ./app/js/index.js
     @ multi (webpack)-dev-server/client?http://localhost:3000 babel-polyfill ./app/js
    
  6. reccollo commented on Feb 13, 2021

    @reccollo

    For those having issues making this work, try this.
    First I downloaded Git and ran Git Bash. If you don't gitbash follow this tutorial https://www.youtube.com/watch?v=BMW7LiF_Oc4
    I created a folder "code" on C://
    With the Git Bash terminal I navigated (type in cd /c/code/ ) to the directory I wanted to install the data to. Then type in the following:
    git clone https://github.com/amigoscode/javascript.git
    cd javascript/
    try running these in order:

    npm install
    npm cache clean --force
    npm install -g npm
    npm install
    *optional
    (npm unistall ~/.node-gyp then npm update)
    npm run devserver

    I hope this helps

  7. nabzdeezy1 commented on Mar 1, 2021

    @nabzdeezy1
    1. Remove the node_modules complete folder and remove the package-lock.json file

    2. Clear npm cache by using command npm cache clean. you can force to clean if gives error

    3. Install and then rebuild node-sass

    npm install node-sass@latest
    npm rebuild node-sass

    1. npm i

    This worked for me

  8. dvdgao34 commented on May 28, 2021

    @dvdgao34
    1. Remove the node_modules complete folder and remove the package-lock.json file
    2. Clear npm cache by using command npm cache clean. you can force to clean if gives error
    3. Install and then rebuild node-sass

    npm install node-sass@latest
    npm rebuild node-sass

    1. npm i

    This worked for me

    Didn't need to remove anything. Just do:

    npm install node-sass@latest
    npm rebuild node-sass
    npm i

    It worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions