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

Now CLI is not updated to 13.0.0 due to installing Now Desktop in the past. #1809

Open
fu-sen opened this Issue Jan 8, 2019 · 5 comments

Comments

2 participants
@fu-sen
Copy link

fu-sen commented Jan 8, 2019

This problem has been progressing with Spectrum Chat:
https://spectrum.chat/zeit/now/i-have-trouble-with-updating-now-cli-windows~fc1df48b-22c5-4bfe-bcb5-2635ad3cc991

The procedure is as follows. The OS on which the phenomenon occurred is Windows 10 64 bit:

  1. Install Now Desktop (It was an old version several months ago)
  2. Uninstall Now Desktop
  3. Install the Now CLI at npm (npm install -g nom) and use it for a while.
  4. Receive 13.0.0 update notice, install Now CLI at npm (npm install -g nom).
  5. npm indicates that 13.0.0 installation is complete, but nom --version remains at 12.1.14.

Note: Now CLI has been successfully updated up to 12.1.14.

2019-01-07 19 58 30

@fu-sen

This comment has been minimized.

Copy link
Author

fu-sen commented Jan 8, 2019

Steps to avoid problems:

  1. Remove Now CLI (npm remove -g now)
  2. Install Now Desktop, Now Desktop automatically updates Now CLI, where 13.0.0 will be installed.
  3. If you like, uninstall Now Desktop and install Now CLI again (npm install -g now), Now CLI keep 13.0.0.

2019-01-08 09 41 08

@leo

This comment has been minimized.

Copy link
Member

leo commented Jan 8, 2019

I believe the problem here is that two instances of Now CLI are installed on your device and located in your PATH. Can you check?

@fu-sen

This comment has been minimized.

Copy link
Author

fu-sen commented Jan 8, 2019

Your prediction is correct. And I could understand the cause of the problem.
I uninstalled Now Desktop. But Now CLI is alive. I found 2 Now CLIs:

Now CLI installed with Now Desktop
C:\Users\balloon\AppData\Local\now-cli\now.exe

Now CLI installed with npm:
C:\Users\balloon\AppData\Roaming\npm\now

Environment variables have the following:

   :
C:\Users\balloon\AppData\Local\now-cli
   :
C:\Users\balloon\AppData\Roaming\npm
   :

Therefore, Now CLI installed by Now Desktop is preferentially executed.

I will be able to solve this manually by deleting now.exe.

@fu-sen

This comment has been minimized.

Copy link
Author

fu-sen commented Jan 8, 2019

It worked!

2019-01-08 23 34 55

But you will need to deal with this problem with Now Desktop. This is still Open.

@fu-sen

This comment has been minimized.

Copy link
Author

fu-sen commented Jan 8, 2019

As I uninstalled Now Desktop,
I noticed that uninstaller deleted the path of Now CLI at the time of restarting Windows.

Therefore, as a solution, after the uninstallation of Now Desktop,
the uninstaller will prompt Windows restart.
Or change the way to disable Now CLI.

There may be path related problems in Now Desktop older versions.

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