Comments (6)
Hey, I'm so sorry about this - thank you for reporting. I'll try to reproduce and fix the issue.
from npm-windows-upgrade.
👍
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.
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
(wherenpm.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.
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.
Cool. Good detective work; thanks.
from npm-windows-upgrade.
Closed in npm.
from npm-windows-upgrade.
Related Issues (20)
- Scope specified more than once (powershell)
- Error: spawn powershell.exe ENOENT HOT 4
- I got this error at the time of run command "ng serve --open". HOT 1
- expo start not opening project
- npm install
- Can't update problem (even for admin) HOT 2
- npm ERR! cb.apply is not a function While trying to Update the Npm the Windows way. HOT 1
- Failed to upgrade from 6.14.6 to 6.14.8 HOT 2
- Error: Npm start
- Error to upgrade: from 6.14.8 to the latest
- npx create-react-app => Error EINTEGRITY
- Cannot find module 'npm-windows-upgrade.js'
- You wanted to install npm 7.6.1, but the installed version is 6.14.11. HOT 2
- "Scripts cannot be executed on this system." on pwsh 7 if process scope is not Unrestricted
- npm install express --save Error
- npm ERR! code EINTEGRITY
- failed to upgrade npm
- while enter npm start for runt a react app it shows error like this
- Cannot install latest version on Windows HOT 1
- Can't execute npm-windows_update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-windows-upgrade.