Hi Gnout,
I have Windows 10 and I’ve never seen this issue in my computer or ionic workspace. I also keep up-to-date versions of all required software. However, I will admit I haven’t used ionic in like two months due to learning Game Development.
I was having these problems with Windows and long file names etc however installing the latest npm fixed the issue because version 3 onwards I believe (and as Mike Hartington has also commented) creates a flat dependency tree structure for node modules.
Regardless if you have a recent version of Node, do this:
npm install -g npm
Note that npm is updated more frequently than Node, so the latest Node version may not necessarily have the latest npm version.
The latest npm version at the time of writing is 3.8.8.
Finally! It worked! Funny thing is that I didn’t do anything different
node version: 6.0.0
npm version: 3.8.7
I executed the commands
ionic start myapp –v2
cd myapp
ionic serve
and I got the application running on Chrome! No errors!
The node_modules directory contains 505 directories! Is that normal?
Thank you for the support.
By the way, any news for Ionic 2 Visual Studio Templates?
There is a great VS template for Ionic 1, are you planning to have something similar for Ionic 2?
Using the latest version of npm for future projects should prevent the need for any external software or scripts to copy/move/delete such projects. See my previous post.
Hi, I just ran into the same problem. I wanted to copy my project folder and then it said,that the file names are too long. Never have seen this before.
I updated node and npm nad also installed a new ionic project, but the error is still there.
Are there any other ideas how to manage this?
Hi Basti
There is a new Template package for Visual Studio 2015 and Ionic 2. You can find it here.
I used it and it worked fine for me. Try it, maybe this will solve your problem.
It produce a huge project (~200MB)