Comments (5)
Hi, kelegele :)
This issue is resolved at #246
Please overwrite the files in my repository with your Nodist install location.
Then do npm install and you will be able to download npm. (It is even better to set NODIST_GITHUB_TOKEN as an env variable.
here:nodist-use-octokit-libnpmexec-v4.0.6
from nodist.
Fixed node_modules/semver/semver.js because NPM version check was causing an exception.
exports.maxSatisfying = maxSatisfying
function maxSatisfying (versions, range, options) {
var max = null
var maxSV = null
try {
var rangeObj = new Range(range, options)
} catch (er) {
return null
}
versions.forEach(function (v) {
// if (rangeObj.test(v)) { to
if (valid(v) && rangeObj.test(v)) {
// satisfies(v, range, options)
if (!max || maxSV.compare(v) === -1) {
// compare(max, v, true)
max = v
maxSV = new SemVer(max, options)
}
}
})
return max
}
from nodist.
The npm/node_mdoules that Nodist downloads lacks the necessary dependency packages for npm to work,
so revert to nodist npm global 6.9.0, move to npm/node_modules and do npm install.
This should work.
from nodist.
I have created an installer. I hope it will be useful for you.
[wafflook/A node.js and npm version manager(nodist will not die. It will revive)
from nodist.
Has been fixed in v.10.3
from nodist.
Related Issues (20)
- nodist 安装指定版本node不成功 HOT 2
- After removing nodist, npm install error: "EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\Nodist' HOT 4
- The OAuth Token in nodist/lib/github.js is expired HOT 5
- Nodist can't find npm version 7.14.0 HOT 13
- No release since 2019, and npm run build doesn't work HOT 9
- "nodist latest" looks buggy to me. HOT 6
- How to uninstall Nodist HOT 4
- NPM command not working. Getting Error: Failed to replace env in config: ${NPM_TOKEN} HOT 1
- NPM commands not working when called from inside Node HOT 3
- Unhandled rejection error when setting npm latest HOT 5
- How to install local version specified in `.npm-version`? HOT 4
- how to set it work in IDE Vscode
- State of this project HOT 17
- Invalid Version: libnpmversion-v3.0.1. HOT 3
- node -v npm -v HOT 2
- npm 8.6, authorization header missing & symlink problem HOT 14
- No such file or directory after unistalling nodist
- error Cannot read properties of undefined (reading 'stdin') HOT 1
- os.Getenv("NODIST_PREFIX") is an empty string HOT 1
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 nodist.