Try the following steps,
Step 1:
npm update -g @angular/cli
Step 2:
Edit your package.json changing the line
"@angular/cli": "1.6.0",
to
"@angular/cli": "^1.6.0"
,
STEP 3:
npm update
Refer the steps
Related Posts:
- “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6
- What’s the difference between using “let” and “var”?
- Angular: conditional class with *ngClass
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- How to fix “Cannot read property ‘addEventListener’ of null” error [duplicate]
- What is an unhandled promise rejection?
- How to import jquery using ES6 syntax?
- Node.js – SyntaxError: Unexpected token import
- Node.js – SyntaxError: Unexpected token import
- Angular: mat-form-field must contain a MatFormFieldControl
- forEach is not a function error with JavaScript array
- (change) vs (ngModelChange) in angular
- Getting Unexpected Token Export
- React with ES7: Uncaught TypeError: Cannot read property ‘state’ of undefined
- Using Node.js require vs. ES6 import/export
- No value accessor for form control
- How can I mock an ES6 module import using Jest?
- Angular: Error no directive with “exportAs” set to “ngForm”
- Angular ForEach in Angular4/Typescript?
- Angular 4 setting selected option in Dropdown
- How can I quickly retrieve a value from a MapIterator returned from Object.keys function?
- Angular4 – No value accessor for form control
- Angular: conditional class with *ngClass
- How to scroll to an element?
- ES6: Create Strings using Template Literals – Freecodecamp
- Cannot read property ‘bind’ of undefined. React.js
- Angular: conditional class with *ngClass
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- How to add multiple classes to a ReactJS Component?
- What is ViewChild in Angular2?
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- Module not found: Error: Can’t resolve ‘fs’ in
- Angular 2 – Using ‘this’ inside setTimeout
- How to fix Cannot find module ‘typescript’ in Angular 4?
- This.props.dispatch not a function – React-Redux
- How to set Angular 4 background image?
- SyntaxError: Unexpected token C in JSON at position 0 – Ionic 2 Http GET request
- Crop the image using JavaScript
- Angular 4 setTimeout() with variable delay and wait
- What does the .subscribe() function do?
- Does ECMAScript 6 have a convention for abstract classes?
- Angular 2 Hover event
- Expected ‘this’ to be used by class method
- How do I download a file with Angular2 or greater
- .filter is not a function
- What are differences between SystemJS and Webpack?
- where is create-react-app webpack config and files?
- How to use forEach loop correctly in angular 2?
- Angular 2 Sort table columns
- How to use onBlur event on Angular2?
- How do I install Angular 2 using NPM?
- Getting “Cannot call a class as a function” in my React Project
- Error: Couldn’t find preset “es2015” relative to directory “/Users/username”
- Using Angular 2 without TypeScript Transpiler
- Is there a way to create interfaces in ES6 / Node 4?
- Cannot read property ‘push’ of undefined when combining arrays
- How can I remove a specific item from an array?
- How to pause javascript code execution for 2 seconds [duplicate]
- Getting Error “Form submission canceled because the form is not connected”
- How to implement navbar using react
- function updateMap for Google Maps API
- React eslint error missing in props validation
- How to specify multiple conditions in an if statement in javascript
- Mongoose – What does the exec function do?
- Open URL in same window and in same tab
- ReferenceError: document is not defined (in plain JavaScript)
- JavaScript innerHTML not updating element
- Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode
- How to use Javascript to read local text file and read line by line?
- Why is the jquery script not working?
- JQuery Datatables : Cannot read property ‘aDataSort’ of undefined
- includes() not working in all browsers
- How to parse float with two decimal places in javascript?
- Checking for duplicate strings in JavaScript array
- How to get current date in jQuery?
- is there something like isset of php in javascript/jQuery?
- jQuery – Dynamically Create Button and Attach Event Handler
- How do I handle newlines in JSON?
- Update style of a component onScroll in React.js
- Reset Undo on the tinymce editor
- Detecting WordPress Customizer Panel
- Customizer – instantiating settings and controls via javascript
- How do I enqueue(or delay loading of) tags in individual page posts?
- can a buttongroup have a label?
- Preloader for a WordPress Site
- Trying to integrate Zoho Campaign Form [closed]
- How to execute Javascript on a WordPress page?
- Removing auto versioning of JS and loading to header
- Gutenberg select excerpt, use generated excerpt or use more block excerpt
- Unable To Call Javascript With Enqueue
- How to integrate a JS fiddle?
- How WP does Mortgage affordability calculation
- java console error about touch navigation
- Update block once an API request returns with a value
- How do I add a class to Customizer preview based on class of Customizer control? (Customizer Javascript API)
- Open image gallery on link click
- WordPress 4.2 mce-views migration guide?
- Loaded JavaScript file not showing [duplicate]
- How to load JavaScript modules with script_loader_tag hook?
- How to securely set dynamic HTML content with JavaScript?