Closed ImBIOS closed 10 months ago
Wait... is it a feature or is it a bug?
@ImBIOS When you run npm
it doesn't use the npm version associated with the current node version, it uses whatever npm version you have pinned or has been detected:
[DEBUG 09:57:00.658] proto_core::version_detector:run Detected version from .prototools file tool="npm" version="10.2.3" file="/Users/ImBIOS/.proto/.prototools"
In this case, it's using 10.2.3. This is technically working as intended, but I agree, a bit confusing. You can set this pinned version to bundled
and it should work how you expect.
You can force an older version with PROTO_NPM_VERSION=x.x.x npm ...
or use bundled with PROTO_NPM_VERSION=bundled npm ...
.
It is a bad experience from a user standpoint. But, it's my responsibility too to set the global npm to a fixed version myself LOL.
What version?
0.27.1
Which command?
npm run XXX
What happened?
I need to check on a legacy project from years back. and install specific node version
proto install node 14.19.1
, but when I rannpm run XXX
, it says:Trace logs?
Operating system?
MacOS
Architecture?
arm64