npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
I am getting "npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump" whenever i try to create a new Angular Application.I have refered this "ng new error #11219". But my node and npm version are 10.5.0 and 6.1.0 and i am using windows version 10 (64-bit). Below is the error i am getting
$ ng new my-app CREATE my-app/angular.json (3548 bytes) CREATE my-app/package.json (1310 bytes) CREATE my-app/README.md (1022 bytes) CREATE my-app/tsconfig.json (384 bytes) CREATE my-app/tslint.json (2805 bytes) CREATE my-app/.editorconfig (245 bytes) CREATE my-app/.gitignore (503 bytes) CREATE my-app/src/environments/environment.prod.ts (51 bytes) CREATE my-app/src/environments/environment.ts (631 bytes) CREATE my-app/src/favicon.ico (5430 bytes) CREATE my-app/src/index.html (292 bytes) CREATE my-app/src/main.ts (370 bytes) CREATE my-app/src/polyfills.ts (3194 bytes) CREATE my-app/src/test.ts (642 bytes) CREATE my-app/src/assets/.gitkeep (0 bytes) CREATE my-app/src/styles.css (80 bytes) CREATE my-app/src/browserslist (375 bytes) CREATE my-app/src/karma.conf.js (964 bytes) CREATE my-app/src/tsconfig.app.json (194 bytes) CREATE my-app/src/tsconfig.spec.json (282 bytes) CREATE my-app/src/tslint.json (314 bytes) CREATE my-app/src/app/app.module.ts (314 bytes) CREATE my-app/src/app/app.component.html (1141 bytes) CREATE my-app/src/app/app.component.spec.ts (989 bytes) CREATE my-app/src/app/app.component.ts (207 bytes) CREATE my-app/src/app/app.component.css (0 bytes) CREATE my-app/e2e/protractor.conf.js (752 bytes) CREATE my-app/e2e/src/app.e2e-spec.ts (302 bytes) CREATE my-app/e2e/src/app.po.ts (208 bytes) CREATE my-app/e2e/tsconfig.e2e.json (213 bytes)
npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
[email protected] install C:\Users\lenovo\documents\angular\my-app\node_modules\node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-64_binding.node Download complete Binary saved to C:\Users\lenovo\documents\angular\my-app\node_modules\node-sass\vendor\win32-x64-64\binding.node Caching binary to C:\Users\lenovo\AppData\Roaming\npm-cache\node-sass\4.9.0\win32-x64-64_binding.node
[email protected] postinstall C:\Users\lenovo\documents\angular\my-app\node_modules\node-sass node scripts/build.js
Binary found at C:\Users\lenovo\Documents\angular\my-app\node_modules\node-sass\vendor\win32-x64-64\binding.node Testing binary Binary is fine
@angular/[email protected] postinstall C:\Users\lenovo\documents\angular\my-app\node_modules@angular\cli node ./bin/ng-update-message.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1114 packages from 1285 contributors and audited 21861 packages in 265.928s
found 13 vulnerabilities (9 low, 4 high)
run npm audit fix to fix them, or npm audit for details
warning: LF will be replaced by CRLF in .editorconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in angular.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in e2e/protractor.conf.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in e2e/src/app.e2e-spec.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in e2e/src/app.po.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in e2e/tsconfig.e2e.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in package-lock.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/app.component.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/app.component.spec.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/app.component.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/app.module.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/browserslist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/environments/environment.prod.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/environments/environment.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/karma.conf.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/polyfills.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/styles.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/test.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/tsconfig.app.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/tsconfig.spec.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/tslint.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tsconfig.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tslint.json.
The file will have its original line endings in your working directory.
should I abort with ctrl-C ?
@da45 if you want to skip your command - use Ctrl+C Also get the same warning. Looks like this package is required by some jest or another packages
@Nomitha-95 could you please provide your package.json?
I faced similar problem. It was solved after clearing npm cache.
npm cache clean --force.
This should help
@feyex i am still getting the same warning :npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump.
the same
the same
ditto
C:\Users\blake\Documents\Code\Angular>npm cache clean --force npm WARN using --force I sure hope you know what you are doing.
You have to appreciate the humor emanating from the npm development staff.
I realize this is just a warning, but it is also a distraction. Why is this warning appearing, will there be any ramifications if the warning is ignored, why is there not a more descriptive message referring to a URL where one can glean more information when determining whether or not to ignore the warning! Yes some warnings are just annoying distractions that can be ignored, but sometimes they also cause minor/major issues that result in wasted time and resources when not addressed up front.
My guess is the warning can be ignored, similar to this warning I am also getting when creating a new Angular
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
Also spent some time on one thread regarding this fsevents issue and finally came to the conclusion that the warning should not be displayed when running ng on Windows, but then again I could be wrong.
Yes warnings are warnings, but they also cause a lot of grief that could be avoided by simply performing a few more checks in the code producing the warning or by providing a more descriptive response action.
Just my 2 cents worth...:)
the same
Just as @blakeguitar has said, it is just a warning. After running npm cache clean --force, try serving your angular project. It should work perfectly.
try
https://npm.runkit.com/istanbul-lib-hook
do anyone have answer for that question.I am facing problem project is not getting created because of that error
npm WARN deprecated [email protected]: 1.2.0 , it is just a warning. try:
$ npm audit fix
I have installed Angular CLI: 6.1.2 not problem in my project $ node -v v10.6.0 $ npm -v 6.1.0 $ tsc -v Version 3.0.1
try this : npm i istanbul-lib-hook then npm i
As previously mentioned, that is nothing but an warning , make sure your npm as well as your CLI is up to date then you should be fine.
i used cmd and run it as administrator then run the following command "npm install -g istanbul"
works like magic
Closing as it's a third party issue which has been solved.
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.