angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.77k stars 11.97k forks source link

Due to changes in the router, route generation has been temporarily disabled. #1103

Closed neerajyadav closed 8 years ago

neerajyadav commented 8 years ago

Environment:

This app was created with angular-cli. package.json

"dependencies": { "@angular/common": "2.0.0-rc.2", "@angular/compiler": "2.0.0-rc.2", "@angular/core": "2.0.0-rc.2", "@angular/http": "2.0.0-rc.2", "@angular/platform-browser": "2.0.0-rc.2", "@angular/platform-browser-dynamic": "2.0.0-rc.2", "@angular/router": "2.0.0-rc.2", "@angular/router-deprecated": "2.0.0-rc.2", "@angular/upgrade": "2.0.0-rc.2", "angular2-universal": "^0.102.1", "body-parser": "^1.15.1", "es6-shim": "0.35.1", "express": "^4.13.4", "preboot": "^2.1.2", "reflect-metadata": "0.1.3", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.26", "zone.js": "0.6.12" }, "devDependencies": { "angular-cli": "1.0.0-beta.6", "codelyzer": "0.0.20", "ember-cli-inject-live-reload": "1.4.0", "jasmine-core": "2.4.1", "jasmine-spec-reporter": "2.5.0", "karma": "0.13.22", "karma-chrome-launcher": "0.2.3", "karma-jasmine": "0.3.8", "protractor": "3.3.0", "ts-node": "0.5.5", "tslint": "3.11.0", "typescript": "1.8.10", "typings": "0.8.1" }

while generating new route from cli, it gives error:

Due to changes in the router, route generation has been temporarily disabled. You can find more information about the new router here: http://victorsavkin.com/post/145672529346/angular-router

alexandrearc commented 8 years ago

Is this related? It happens while create a new app:

@angular/router@3.0.0-alpha.3 postinstall: typings install spawn ENOENT Error: @angular/router@3.0.0-alpha.3 postinstall: typings install spawn ENOENT at ChildProcess. (/usr/local/lib/node_modules/angular-cli/node_modules/npm/lib/utils/spawn.js:17:16) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

tagazok commented 8 years ago

@alexandrearc it happened to me also. I removed typings and reinstalled it :

rm -rf /usr/local/bin/typings
npm install typings --global
alexandrearc commented 8 years ago

@tagazok i will give it a try. I had opened a new issue for it, maybe invalid then.

jasonswett commented 8 years ago

I think this might be a dup of https://github.com/angular/angular-cli/issues/1093.

I'm experiencing the same issue.

filipesilva commented 8 years ago

Closing as dup of #1093.

angular-automatic-lock-bot[bot] commented 5 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.