-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix
Description
Bug Report or Feature Request (mark with an x)
- bug report -> please search issues before submitting
- feature request
Versions.
@angular/cli: 1.0.0-rc.2
node: 7.7.3
os: darwin x64
@angular/cli: 1.0.0-rc.2
@angular/compiler-cli: 2.4.9
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/flex-layout: 2.0.0-rc.1
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
Repro steps.
- Create a test project.
- Move @angular/cli to prod dep from dev
- Run ng --version
- get this
The package "angular-cli" has been renamed to "@angular/cli". The old package will be deprecated soon.
Please take the following steps to avoid issues:
"npm install --save-dev @angular/cli@latest"
Desired functionality.
Would be nice to not get an error at all.
Mention any other details that might be useful.
Here is my entire package.json
I needed to move angular/cli to prod for heroku to build the app.
{
"name": "random",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"postinstall": "ng build --aot --prod",
"ng": "ng",
"start": "node server/server.js",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build": "ng build --aot && node server/server.js"
},
"engines": {
"node": "7.7.3",
"npm": "4.4.1"
},
"private": true,
"dependencies": {
"@angular/cli": "1.0.0-rc.2",
"@angular/compiler-cli": "^2.4.9",
"@angular/common": "^2.4.9",
"@angular/compiler": "^2.4.9",
"@angular/core": "^2.4.9",
"@angular/flex-layout": "^2.0.0-rc.1",
"@angular/forms": "^2.4.9",
"@angular/http": "^2.4.9",
"@angular/material": "^2.0.0-beta.2",
"@angular/platform-browser": "^2.4.9",
"@angular/platform-browser-dynamic": "^2.4.9",
"@angular/router": "^3.4.9",
"body-parser": "^1.17.1",
"core-js": "^2.4.1",
"express": "^4.15.2",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"hover.css": "^2.0.2",
"material-design-icons": "^3.0.1",
"roboto-fontface": "^0.7.0",
"rxjs": "^5.2.0",
"zone.js": "^0.8.3"
},
"devDependencies": {
"@types/hammerjs": "^2.0.34",
"@types/jasmine": "2.5.45",
"@types/node": "~7.0.8",
"codelyzer": "~3.0.0-beta.3",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.5.0",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.1",
"ts-node": "~2.1.0",
"tslint": "^4.5.1",
"typescript": "~2.2.1"
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix