# Windows 10 - Upgrade unable to via CMD

**URL:** <https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161>\
**Category:** General\
**Created:** [3 April 2020 14:00 UTC](https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161 "2020-04-03T14:00:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [3 April 2020 14:00 UTC](https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161/1 "2020-04-03T14:00:42Z")

</div>

Hi,

Trying to upgrade Node -red on my Windows 10 PC.

I am using CDM and not powershell and as the directory is C:\Program Files\nodejs

**Error from Powershell, I think it is due the the space in the directory structure "Program Files"**  
_PS C:\> cd /Program Files_  
_Set-Location : A positional parameter cannot be found that accepts argument 'Files'._  
_At line:1 char:1_  
_+ cd /Program Files_  
\*+ ~~~~~~~~~~~~~~~~~ \*

- 
  - CategoryInfo : InvalidArgument: (🙂 [Set-Location], ParameterBindingException\*

- 
  - FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand\*

**If I run in CMD I get the following:**

_C:\Program Files\nodejs\>npm install -g --unsafe-perm node-red_  
_npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)_  
_C:\Users\Johan\AppData\Roaming\npm\node-red-pi -\> C:\Users\Johan\AppData\Roaming\npm\node\_modules\node-red\bin\node-red-pi_  
_C:\Users\Johan\AppData\Roaming\npm\node-red -\> C:\Users\Johan\AppData\Roaming\npm\node\_modules\node-red\red.js_

_\> bcrypt@3.0.6 install C:\Users\Johan\AppData\Roaming\npm\node\_modules\node-red\node\_modules\bcrypt_  
_\> node-pre-gyp install --fallback-to-build_

_node-pre-gyp WARN Using request for node-pre-gyp https download_  
_[bcrypt] Success: "C:\Users\Johan\AppData\Roaming\npm\node\_modules\node-red\node\_modules\bcrypt\lib\binding\bcrypt\_lib.node" is installed via remote_  
_+ node-red@1.0.4_  
_added 331 packages in 174.52s_

_C:\Program Files\nodejs\>node --version && npm --version_  
_v8.11.2_  
_5.6.0_

**Any assistance will be appreciated. Thank you**

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 April 2020 14:13 UTC](https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161/2 "2020-04-03T14:13:15Z")

</div>

use quotes for path with space in them

You install looks to have worked - have you tried running node-red and checking the version number on start up (or in the hamburger menu)

EDIT: also, for understanding sake, npm -g means install globally (i.e. no need to CD into program files)

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [4 April 2020 07:42 UTC](https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161/3 "2020-04-04T07:42:43Z")

</div>

Thank you for you assistance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 June 2020 07:42 UTC](https://discourse.nodered.org/t/windows-10-upgrade-unable-to-via-cmd/24161/4 "2020-06-03T07:42:43Z")

</div>

Closed on 3 June 2020 07:42 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
