# Stuck at Npm install

**URL:** <https://forums.balena.io/t/stuck-at-npm-install/5738>\
**Category:** Product support\
**Created:** [March 25, 2019, 1:07pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738 "2019-03-25T13:07:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 25, 2019, 1:07pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/1 "2019-03-25T13:07:49Z")

</div>

Struggling beginner  
I have the Balena Logo showing on the Pi 3b+ screen.  
Point one: Do I use the dashboard on the Balena site or should I see a dashboard on the Pi ?  
Point 2: When entering npm install balena-cli -g It tells me npm is not installed. Where do I go from here ?  
Any help appreciated

---

<div class="post-metadata">

**Author:** ![majorz](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/majorz/32/639_2.png) [@majorz](https://forums.balena.io/u/majorz)\
**Post date:** [March 25, 2019, 1:29pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/4 "2019-03-25T13:29:00Z")

</div>

The dashboard is not displayed on the RPi screen, but on our website indeed: [http://dashboard.balena-cloud.com/](http://dashboard.balena-cloud.com/)

To use npm you will need Node.js installed on your system: [https://nodejs.org/en/download/](https://nodejs.org/en/download/)

---

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 25, 2019, 2:24pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/23 "2019-03-25T14:24:31Z")

</div>

Thank you for that.  
So where do I enter the node.js installation command ?

---

<div class="post-metadata">

**Author:** ![majorz](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/majorz/32/639_2.png) [@majorz](https://forums.balena.io/u/majorz)\
**Post date:** [March 25, 2019, 2:28pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/24 "2019-03-25T14:28:47Z")

</div>

Are you using Windows or Mac OS?

---

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 25, 2019, 2:57pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/26 "2019-03-25T14:57:34Z")

</div>

Sorry I should have said.  
Its windows 10

---

<div class="post-metadata">

**Author:** ![majorz](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/majorz/32/639_2.png) [@majorz](https://forums.balena.io/u/majorz)\
**Post date:** [March 25, 2019, 3:13pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/27 "2019-03-25T15:13:00Z")

</div>

You can install Node.js from the MSI installer in that case. After you install it you need to open a `cmd` prompt and enter the npm install command.

---

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 25, 2019, 3:54pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/28 "2019-03-25T15:54:03Z")

</div>

I have done so and now getting loads of errors and warnings when entering npm install balena-cli -g  
All this is above me, so I am giving up.  
Thank you for your time and patience

---

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 25, 2019, 3:55pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/29 "2019-03-25T15:55:28Z")

</div>

I meant to add the errors

C:\WINDOWS\system32\>npm install balena-cli -g  
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js  
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js  
C:\Users\pict9\AppData\Roaming\npm\balena → C:\Users\pict9\AppData\Roaming\npm\node\_modules\balena-cli\bin\balena

> drivelist@6.4.6 install C:\Users\pict9\AppData\Roaming\npm\node\_modules\balena-cli\node\_modules\drivelist  
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.15.3 runtime=node arch=x64 platform=win32)

C:\Users\pict9\AppData\Roaming\npm\node\_modules\balena-cli\node\_modules\drivelist\>if not defined npm\_config\_node\_gyp (node “C:\Program Files\nodejs\node\_modules\npm\node\_modules\npm-lifecycle\node-gyp-bin\…..\node\_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js” rebuild )  
gyp ERR! configure error  
gyp ERR! stack Error: Command failed: C:\Python37\python.EXE -c import sys; print “%s.%s.%s” % sys.version\_info[:3];  
gyp ERR! stack File “”, line 1  
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version\_info[:3];  
gyp ERR! stack ^  
gyp ERR! stack SyntaxError: invalid syntax  
gyp ERR! stack  
gyp ERR! stack at ChildProcess.exithandler (child\_process.js:294:12)  
gyp ERR! stack at ChildProcess.emit (events.js:189:13)  
gyp ERR! stack at maybeClose (internal/child\_process.js:970:16)  
gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:259:5)  
gyp ERR! System Windows\_NT 10.0.18356  
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node\_modules\npm\node\_modules\node-gyp\bin\node-gyp.js” “rebuild”  
gyp ERR! cwd C:\Users\pict9\AppData\Roaming\npm\node\_modules\balena-cli\node\_modules\drivelist  
gyp ERR! node -v v10.15.3  
gyp ERR! node-gyp -v v3.8.0  
gyp ERR! not ok  
npm WARN balena-request@10.0.1 requires a peer of balena-auth@^2.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN resin-register-device@5.0.0 requires a peer of resin-request@^9.0.2 but none is installed. You must install peer dependencies yourself.  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: macmount@1.0.0 (node\_modules\balena-cli\node\_modules\macmount):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for macmount@1.0.0: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! drivelist@6.4.6 install: `prebuild-install || node-gyp rebuild`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the drivelist@6.4.6 install script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\pict9\AppData\Roaming\npm-cache\_logs\2019-03-25T15\_50\_43\_963Z-debug.log

C:\WINDOWS\system32\>

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [March 26, 2019, 10:15am UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/30 "2019-03-26T10:15:06Z")

</div>

Hey @TamP,

As an alternative, you can download the standalone version of balena-cli which is ready to go. Just head to [https://github.com/balena-io/balena-cli/releases](https://github.com/balena-io/balena-cli/releases) and download the latest windows version.

Then you can unzip it on, for example, `C:\balena` in which you will then run on the terminal `C:\balena'\balena.exe login` to authenticate with the service, and go from there.

To push code to the balenaCloud, just go to the source-code folder for the project and run `C:\balena'\balena.exe push <appName>`.

Let me know if you still have issues

Cheers

---

<div class="post-metadata">

**Author:** ![TamP](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TamP](https://forums.balena.io/u/TamP)\
**Post date:** [March 26, 2019, 11:48am UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/31 "2019-03-26T11:48:55Z")

</div>

I followed your clear and concise instruction. Thank you  
After authenticating I am not sure what to do now  
I have no idea what code to push to the cloud.  
This is a new world for me. I thank you again in advance

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [April 12, 2019, 8:40am UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/32 "2019-04-12T08:40:14Z")

</div>

Hey @TamP,

I have recorded today a video showing how to install Balena-CLI and deploying the first project with balena on Windows. As soon as I finish editing the video I will send you a link to the video. I believe it will help answering most of your questions.

Cheers

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [April 12, 2019, 4:50pm UTC](https://forums.balena.io/t/stuck-at-npm-install/5738/33 "2019-04-12T16:50:21Z")

</div>

@TamP, here you go [https://www.youtube.com/watch?v=j3JoA1EINUA](https://www.youtube.com/watch?v=j3JoA1EINUA)

Hope this helps you configuring the balena-cli on your device.

Cheers
