Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 10.10 & 10.11 potential issues npm doesnt exist- node.exe vs node64.exe #398

Open
6 of 28 tasks
JoshRosenstein opened this issue Oct 9, 2018 · 9 comments
Open
6 of 28 tasks
Assignees

Comments

@JoshRosenstein
Copy link

My Environment

  • Windows 7 or below (not truly supported due to EOL - see wiki for details)

  • Windows 8

  • Windows 8.1

  • Windows 10

  • Windows 10 IoT Core

  • Windows Server 2012

  • Windows Server 2012 R2

  • Windows Server 2016

  • My Windows installation is non-English.

I'm using NVM4W version:

  • [X ] 1.1.7
  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • Older
  • OTHER (Please Specify)

I have already...

  • read the README to be aware of npm gotchas & antivirus issues.
  • reviewed the wiki to make sure my issue hasn't already been resolved.
  • verified I'm using an account with administrative privileges.
  • searched the issues (open and closed) to make sure this isn't a duplicate.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • settings.txt
  • proxy support (Have you tried version 1.1.0+?)
  • 32 or 64 bit support (Have you tried version 1.1.3+?)
  • Character escaping (Have you tried version 1.1.6+?)
  • A standard shell environment (terminal/powershell)
  • A non-standard shell environment (Cmder, Hyper, Cygwin, git)

Expected Behavior

Not sure if this is a nvm or Node issue, I noticed this issue when downloading node 10.10.0 and node 10.11.0. did not have this issue with 10.9.0 or below.
but npm.cmd tries the call node.exe but the exe file name is node64.exe. So either had to rename the node exe file, or update the npm.cmd line.

SET "NODE_EXE=%~dp0\node.exe"

to

SET "NODE_EXE=%~dp0\node64.exe"

just a heads up if anyone gets a cmd error of npm doesnt exist.

@coreybutler
Copy link
Owner

Was this a new install? NVM4W rewrites node64.exe to node.exe for you, so this shouldn't be an issue. This can be solved with nvm use 10.10.0 64, but I'd like to know more about the setup to see if we an figure out why the rename didn't occur.

@JoshRosenstein
Copy link
Author

Yes, it was a new installs, come to think of it, i might have ran nvm install and nvm use prior to fixing the other issue of changing path variables to short (non-spaced).That may have caused nvm not to properly locate and make the change.
I ran the following, without the arch option.

nvm install 10.10.0
nvm use 10.10.0

Which led to having node64.exe within the folder.

@coreybutler
Copy link
Owner

It sounds like the environment may be a little unusual and is the most likely cause of the issue. However; I think this is a good edge case for illustrating the need for validation. I'm going to mark this as an enhancement request.

Note to self: NVM4W should check for alternative architecture and at least warn the user if node.exe does not exist and either node32.exe or node64.exe exist. When possible, auto-correct.

@martinstefanov
Copy link

I have had the same problem on Win 7 Pro with nvm 1.1.6. nvm was reporting that cannot download npm. I found that the npm repository was moved. I have upgraded to nvm 1.1.7 and the problem was fixed.

@agrcrobles
Copy link

I wasn't able to download the npm neither because it was moved from https://github.com/npm/cli/archive/.
I am on 1.1.7 and Windows 10 Node 8.

@pingoo
Copy link

pingoo commented Nov 2, 2018

Same here.
Windows 10 pro 64bits.
EDIT: Same with Nodejs 10.13.0 LTS

@kerosan
Copy link

kerosan commented Nov 12, 2018

same issue https://github.com/npm/npm/releases/tag/v6.4.1 - invalid url. It on https://github.com/npm/cli/releases/tag/v6.4.1 now

@fredericrous
Copy link
Contributor

@michaelmberger
Copy link

Ran into same issue on 1.1.7. Opted to hard link node.exe to node64.exe rather than edit the script.
Possible other causes: I moved the installation directory from Appdata/Roaming/nvm to c:\Program Files\nodejs\ then did nvm install latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants