Giter Site home page Giter Site logo

Comments (6)

felixrieseberg avatar felixrieseberg commented on May 19, 2024

Hey, I'm so sorry about this - thank you for reporting. I'll try to reproduce and fix the issue.

from npm-windows-upgrade.

nazrhyn avatar nazrhyn commented on May 19, 2024

👍

I did a clean install of NodeJS 5.4.1, then npm install -g npm-windows-upgrade. Same error.

Edit: I tried following @atom0s's instructions to do a repair then try the upgrade again. It does seem to have worked, but this was the output:

$ ./npm-windows-upgrade
npm-windows-upgrade 1.2.0
? This tool will upgrade npm. Do you want to continue? Yes
? Which version do you want to install? 3.5.4
Upgrading... -Error:  npm
Error:
Error:  WARN
Error:  ENOENT ENOENT: no such file or directory, open 'C:\Program Files\nodejs\package.json'

Error:  npm
Error:   WARN EPACKAGEJSON nodejs No description

Error:  npm
Error:   WARN EPACKAGEJSON nodejs No repository field.

Error:  npm
Error:   WARN EPACKAGEJSON nodejs No README data

Error:  npm
Error:   WARN EPACKAGEJSON nodejs No license field.



Upgrade finished. Your new npm version is 3.5.4. Have a nice day!

from npm-windows-upgrade.

felixrieseberg avatar felixrieseberg commented on May 19, 2024

Again, thanks for reporting - I confirmed what is going on here. Interestingly, if you do the following, not all module are installed correctly:

  • Install Node 5.4.1
  • Go to C:\Program Files\nodejs (where npm.bat lives)
  • Run .\npm install npm@latest

I'll try to figure out what's going on, but I'm afraid this might be an upstream issue in npm (not that that would be in any way better).

from npm-windows-upgrade.

felixrieseberg avatar felixrieseberg commented on May 19, 2024

I confirmed that this is an upstream issue - [email protected] and below should be fine. I'll think about a way to warn users about issues like these.

from npm-windows-upgrade.

nazrhyn avatar nazrhyn commented on May 19, 2024

Cool. Good detective work; thanks.

from npm-windows-upgrade.

felixrieseberg avatar felixrieseberg commented on May 19, 2024

Closed in npm.

from npm-windows-upgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.