Reputation: 1606
I am using ubuntu 16 OS and my node and npm versions are as below
node v7.4.0
npm 4.0.5
if i give ng new my-project i am getting below error
It seems like you're using a project generated using an old version of the Angular CLI. The latest CLI now uses webpack and has a lot of improvements including a simpler workflow, a faster build, and smaller bundles.
To get more info, including a step-by-step guide to upgrade the CLI, follow this link: https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14
Please help me on this
Upvotes: 2
Views: 7835
Reputation: 4787
Do following steps:
Uninstall anguar-cli
and clean npm cache by executing the following:
npm uninstall -g angular-cli
npm cache clean
Delete folder /usr/local/lib/node_modules/angular-cli (or folder angular-cli
from your global npm_modules
folder).
Reinstall angular-cli using npm install -g angular-cli@latest
and then try
creating new project.
Upvotes: 4