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?
- How can I generate a rainbow circle using HTML5 canvas?
- What’s the difference between “{}” and “[]” while declaring a JavaScript array?
- What does “javascript:void(0)” mean?
- For-each over an array in JavaScript
- How to delete a cookie?
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- How do you use the ? : (conditional) operator in JavaScript?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- are there dictionaries in javascript like python?
- How to do associative array/hashing in JavaScript
- How to make a discord bot create an invite for every server it joins?
- ES6 Map in Typescript
- addEventListener vs onclick
- How do I check if an array includes a value in JavaScript?
- JavaScript document.getElementById().value logs empty value
- How do I color a hexagonal grid such that it doesn’t have neighbors of the same color?
- How to format a JavaScript date
- What does href expression do?
- map function for objects (instead of arrays)
- Wait 5 seconds before executing next line
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- Kadane’s algorithm explained
- What is console.log?
- Dynamically creating charts of each row in an HTML table with chart.js
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to convert a string to an integer in JavaScript?
- Maximum call stack size exceeded error
- How to change CSS using jQuery?
- How to properly use jsPDF library
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- How to reload a page using JavaScript
- How can I do string interpolation in JavaScript?
- Can I use complex HTML with Twitter Bootstrap’s Tooltip?
- Start script missing error when running npm start
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- How do I redirect to another webpage?
- How to round to at most 2 decimal places, if necessary?
- What is VanillaJS?
- Invariant Violation: Objects are not valid as a React child
- Could not find module “@angular-devkit/build-angular”
- How do I make the first letter of a string uppercase in JavaScript?
- How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
- window.location.href and window.open () methods in JavaScript