Giter Site home page Giter Site logo

Comments (2)

spencer1573 avatar spencer1573 commented on June 16, 2024

same here. i got it to work with just running
webpack-dev-server.
so weird. I don't know enough to know why that works.

npm start - for some reason it doesn't like that.

from angular2-website-routes.

simpulton avatar simpulton commented on June 16, 2024

@dfparker2002
We just tried a completely clean install of the repo and everything ran smoothly. We also tried legacy versions of node and things still worked so we don't know what the problem is right offhand.

The error indicates that you do not have webpack-dev-server locally, which should not be happening because we have included it in package.json. Please verify that there is a webpack-dev-server directory in the node_modules directory within the project. If there is not, please run npm i webpack-dev-server. If it does exist, continue reading.

While you are running just about the latest version of node, your version of NPM is 1.x, when it should be 3.x. This may be the cause of your problems, so please update NPM to version 3.x.

If that still does not resolve the issue, please try the following:

  1. Remove the node_modules folder from the project
  2. Run npm cache clean in the terminal
  3. Run npm install
  4. Try running the app again

@spencer1573
It looks like you have webpack-dev-server installed globally but not locally. Whenever you run an npm module from within an NPM script, it looks for a version installed locally. But when you run it straight from the command line, it is looking for the global version. Please follow the above steps and let us know what happens.

Thanks!

from angular2-website-routes.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.