This is a migrated thread and some comments may be shown as answers.

Add node_modules

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bruno
Top achievements
Rank 1
Bruno asked on 08 Apr 2015, 04:40 PM

Good Afternoon, 

 

Can we use node_modules on a NativeScript apps ? If we can, how can I require the library?

 

Thanks in advance,

Bruno

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 09 Apr 2015, 08:04 AM
Hi Bruno,

A good question indeed! While we still don't have NPM node_modules as a first-class citizen in NativeScript CLI, we have it planned for the nearest future.

For the time being, the only option is manually copying the js files of the third-party NodJS library and its dependencies to the tns_modules folder of your application and fixing their paths. This is tedious work for the maintenance is really costly, but at least it is an approach...

We are working on getting the real NPM support though...

Kind regards,
Erjan Gavalji
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Bruno
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or