node.jsnpmappceleratorappcelerator-alloy

How to install and use NPM packages in appcelerator alloy


Does anyone know the how to install and use npm packages in Alloy projects?

I am trying to use a sharepoint module, https://www.npmjs.com/package/sharepointconnector.

I have installed it via 'npm install sharepointconnector' in various directories, moved into /Resources, /app/lib directories, but still not working. Most cases I get the 'sharepointconnector not found in ...' error.

Any help is much appreciated.


Solution

  • Appcelerator does not support npm packages to the alloy or classic app. Appcelerator only supports as a module, Titanium Module Concepts. Actually, that npm packages is created based on the nodeJS app. So, you can use that packages in your nodeJS app then create your custom API. Alloy or classic App support any web API.

    Hope you got the point.