Giter Club home page Giter Club logo

Comments (4)

warrenhales avatar warrenhales commented on May 13, 2024

Actually ... now I am not sure if the update actually worked. Despite what the list command is reporting (see above) doing npm -v returns 2.11.2

from npm-windows-upgrade.

warrenhales avatar warrenhales commented on May 13, 2024

Closed powershell and re-opened and ran npm-windows-upgrade again and received a different error:

PS C:\SolutionTemplates\WebSolution> npm-windows-upgrade
npm-windows-upgrade 0.2.3
? This tool will upgrade npm. Do you want to continue? Yes
? Which version do you want to install? 2.12.1
Upgrading.. /Error:  module.js:338
    throw err;
          ^
Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (C:\Users\Warren\AppData\Roaming\npm\node_modules\npm\lib\config\defaults.js:7:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Upgrading.. -

You wanted to install npm 2.12.1, but the installed version is2.11.2.
Please consider reporting your trouble to http://aka.ms/npm-issues.
Here is the output from the upgrader script:
[ 'All done!\r\n' ] [ 'module.js:338\r\n    throw err;\r\n          ^\r\nError: Cannot find module \'semver\'\r\n    at
Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:278:25)\r\n    at Module.
require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (C:\\Users\\Warren\\AppData
\\Roaming\\npm\\node_modules\\npm\\lib\\config\\defaults.js:7:14)\r\n    at Module._compile (module.js:460:26)\r\n    at
 Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._lo
ad (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n' ]
PS C:\SolutionTemplates\WebSolution>

from npm-windows-upgrade.

warrenhales avatar warrenhales commented on May 13, 2024

Just noticed something that may be relevant to this issue:

My node installation is in C:\nodejs

But reading the manual solution it sounds like the assumption is node is installed in

C:\Program Files (x86)\nodejs

from npm-windows-upgrade.

felixrieseberg avatar felixrieseberg commented on May 13, 2024

Actually, I have hopes that the just released version 0.3.2 will fix your issue. Do me a favour and run npm install -g npm-windows-upgrade and npm-windows-upgrade again.

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.