Npm task not running before serve


#1

Hi all,

in order to be able to emulate my Ionic 2 app in windows phone emulator, I updated to Windows 10 yesterday.

Today, I started a new Ionic 2 project using

ionic start mySideMenu sidemenu --v2

However, when running

ionic serve
a browser windows open and says > Error: ENOENT: no such file or directory, open ‘D:[path]\index.html’

I created a project before updating to Windows 10. Serving this project still works fine.

The difference, as far as I can see, is that not serve:before npm tasks is not executed when running the serve command in the newly created project. The old project prompts
> Running ‘serve:before’ npm script before serve

> ionic-hello-world@ watch D:\temp\Ionic2VSCodeTest
> ionic-app-scripts watch

These lines do not appear when serving the new project.

What has changed? Any ideas?

Best regards,
Thomas


#2

The version has changed a bit.

Old project
--------------------------------

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.38
OS:
Node Version: v7.0.0


--------------------------------

New project:
--------------------------------
--------------------------------

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.43
OS:
Node Version: v7.0.0


--------------------------------

Has anything changed to rc.2?