# Can I use npm packages or Node.js APIs?

**URL:** https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118
**Category:** UXP Plugin API
**Tags:** faq
**Created:** [September 25, 2018, 7:35pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118 "2018-09-25T19:35:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ashryan](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ashryan/32/1177_2.png) [@ashryan](https://forums.creativeclouddeveloper.com/u/ashryan)
#### Post date: [September 25, 2018, 7:35pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118/1 "2018-09-25T19:35:25Z")

</div>

You may be able to use some npm packages without modification, but chances are good that you’ll need to use webpack or rollup in order to generate a bundle.

Node.js APIs themselves are not supported.

---

<div class="post-metadata">

### Author: ![hossamAbdelnaser](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/hossamabdelnaser/32/740_2.png) [@hossamAbdelnaser](https://forums.creativeclouddeveloper.com/u/hossamAbdelnaser)
#### Post date: [March 24, 2020, 8:07pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118/2 "2020-03-24T20:07:49Z")

</div>

I’m searching for an answer to the same question

---

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [March 24, 2020, 9:07pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118/3 "2020-03-24T21:07:35Z")

</div>

You can search for _npm_ on this forum but here’s an explanation re: node.js from @kerrishotts:

> [@Do anybody try to use core modules of Node js](http://forums.creativeclouddeveloper.com/t/do-anybody-try-to-use-core-modules-of-node-js/443/3):
>
> Hi all — We do not directly support the use of Node-specific modules in XD plugins for many reasons, not the least of which is security (incredibly important, obviously), but also because we don’t want to ship Node as a dependency in XD. So there’s no Node whatsoever inside XD. That said, depending on the platform, we do utilize some dependencies that Node also uses. For example, on macOS, we utilize the libuv libraries which gets us the same capabilities as Node’s fs library. On UWP, however,…

---

<div class="post-metadata">

### Author: ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)
#### Post date: [March 26, 2020, 5:43pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118/4 "2020-03-26T17:43:14Z")

</div>

See also these pages in the documentation:  
[JavaScript support - Can I use npm packages or Node.js APIs?](https://adobexdplatform.com/plugin-docs/reference/javascript/javascript-support.html#can-i-use-npm-packages-or-nodejs-apis) and  
[API environment - Not a browser and not Node.js](https://adobexdplatform.com/plugin-docs/reference/javascript/environment.html#not-a-browser-and-not-nodejs).

These should show up if you search docs for “npm package” or “Node.js”.

---

<div class="post-metadata">

### Author: ![ahmadalfy](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ahmadalfy/32/2794_2.png) [@ahmadalfy](https://forums.creativeclouddeveloper.com/u/ahmadalfy)
#### Post date: [March 9, 2023, 8:53am UTC](https://forums.creativeclouddeveloper.com/t/can-i-use-npm-packages-or-node-js-apis/118/5 "2023-03-09T08:53:41Z")

</div>

I used Rollup to bundle a module and it worked perfectly.
