# NPM Install error

**URL:** <https://forum.dfinity.org/t/npm-install-error/5804>\
**Category:** Getting Started\
**Created:** [July 9, 2021, 4:39am UTC](https://forum.dfinity.org/t/npm-install-error/5804 "2021-07-09T04:39:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pushprajj](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/pushprajj/32/612_2.png) [@pushprajj](https://forum.dfinity.org/u/pushprajj)\
**Post date:** [July 9, 2021, 4:39am UTC](https://forum.dfinity.org/t/npm-install-error/5804/1 "2021-07-09T04:39:17Z")

</div>

Hi All,

I am trying to deploy my hello world app on Dfinity. While installing npm using ‘sudo apt install npm’ or ‘npm install’, it is not able to locate and install npm. I guess because of this, when I try to deploy, it shows: 'Connection refused (os error 11). Can anybody please help?

Thanks,  
Pushpraj

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [July 11, 2021, 8:35am UTC](https://forum.dfinity.org/t/npm-install-error/5804/2 "2021-07-11T08:35:47Z")

</div>

Follow this to install npm on your system first

> **[nodesource/distributions](https://github.com/nodesource/distributions)**
>
> NodeSource Node.js Binary Distributions. Contribute to nodesource/distributions development by creating an account on GitHub.

After you installed npm, inside your project directory run `npm install`.

Another thing you need to do is running `dfx start` fron inside your project directory in another terminal before you’re to able to successfully run `dfx deploy`

---

<div class="post-metadata">

**Author:** ![wang](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/wang/32/446_2.png) [@wang](https://forum.dfinity.org/u/wang)\
**Post date:** [July 11, 2021, 9:07am UTC](https://forum.dfinity.org/t/npm-install-error/5804/3 "2021-07-11T09:07:28Z")

</div>

I would recommend [nvm](https://github.com/nvm-sh/nvm) for managing node installations
