Reputation: 126
I have created new Angular 2 application with angular-cli like this: ng new PROJECT_NAME
But when I run ng serve
, it displays this error:
Error: Attempting to watch missing directory: typings
...
broccoli plugin was instantiated at:
....
Upvotes: 2
Views: 4087
Reputation: 3
proxy issue maybe use create a file in your root folde
{
proxy=http://ip-addres:port
"rejectUnauthorized": false
}
Upvotes: -1
Reputation: 126
You should install typings package:
npm install typings --global
and than run following command:
npm run postinstall
Upvotes: 6
Reputation: 21
Postinstall is a process that needs to take place after npm installs all the required packages through. On some systems it does not take place. To force it to install run the following commands in the project directory:
npm i -g typings
npm run postinstall
After running these you can easily launch ng serve in the project directory
Upvotes: 2