Skip to content

Error starting the project #835

Closed
Closed

Description

@alacret
  • I'm submitting a ...
    [X] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
  • What is the current behavior?
    The Project Does not start
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

    node -v

    v6.3.1

    npm -v

    No need to prepend node_modules path #3.10.3

git clone --depth 1 https://github.com/angularclass/angular2-webpack-starter.git
cd angular2-webpack-starter
npm install

npm start or npm run server:dev:hmr

RESULT:

angular2-webpack-starter@5.0.5 server:dev /vagrant/angular2-webpack-starter
webpack-dev-server --config config/webpack.dev.js --progress --profile --colors --watch --display-error-details --display-cached --content-base src/

/vagrant/angular2-webpack-starter/node_modules/sockjs/lib/sockjs.js:48

SyntaxError: Unexpected token ILLEGAL
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/vagrant/angular2-webpack-starter/node_modules/sockjs/index.js:1:80)
at Module._compile (module.js:541:32)

npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/home/vagrant/.nvm/versions/node/v6.3.1/bin/node" "/home/vagrant/.nvm/versions/node/v6.3.1/bin/npm" "run" "server:dev"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! angular2-webpack-starter@5.0.5 server:dev: webpack-dev-server --config config/webpack.dev.js --progress --profile --colors --watch --display-error-details --display-cached --content-base src/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack-starter@5.0.5 server:dev script 'webpack-dev-server --config config/webpack.dev.js --progress --profile --colors --watch --display-error-details --display-cached --content-base src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --config config/webpack.dev.js --progress --profile --colors --watch --display-error-details --display-cached --content-base src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /vagrant/angular2-webpack-starter/npm-debug.log

Activity

  1. kaurinz commented on Aug 7, 2016

    @kaurinz

    same issue

  2. wuzhouyang commented on Sep 5, 2016

    @wuzhouyang

    is it solved?

  3. alacret commented on Sep 5, 2016

    @alacret
    Author

    No

    On Sunday, 4 September 2016, oceania wu notifications@github.com wrote:

    is it solved?

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub
    #835 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AA4Fb1YXoOqtPLwfVZoEPmFP37lK4M19ks5qm3ZkgaJpZM4JdzJP
    .

    Ing. Angel Lacret

  4. wuzhouyang commented on Sep 5, 2016

    @wuzhouyang

    i just resolve it because the default port was occupied...

  5. vigneshpr commented on Nov 15, 2016

    @vigneshpr

    try fuser -k 3000/tcp then run

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions