Reputation: 155
I need help configuring Angular2 project in eclipse with npm.
I followed the 5-min starting guide, but when I create the node_modules folder inside the project folder, the building process is infinite (building, syncronizing with Tern server and more), so I just could not make this work. Tried excluding the folder from various Validators. Are there any specific validators to do this?
Does node_modules folder need to be inside the project directory? Inside the WebContent folder? I tried Static and Dynamic web projects.
When I'm not using npm but putting specific files inside a lib folder and referencing them directly, everything works fine, but I want to use npm the correct way.
Thank you!
Upvotes: 1
Views: 1003
Reputation: 2125
Disclaimer I'm the author of Angular2 Eclipse.
It seems that you have installed AngularJS Eclipse, but it's for Angular1 and not Angular2.
If you wish to develop an Angular2 application with TypeScript please install Angular2 Eclipse.
For your problem about syncronizing with Tern server
(process is infinite), it's because you need to exclude the node_modules
folder to avoid parsing JS files with tern coming from node_modules. To exclude this folder you must convert your project to JavaScript Project
and check that Include Path
excludes"node_modules" (it should be done if you convert your project to JavaScritpt Project):
Upvotes: 1