antfu-collective / ni

💡 Use the right package manager
MIT License
6.42k stars 210 forks source link

chore: `os.platform()` to lower case #137

Closed lvjiaxuan closed 1 year ago

lvjiaxuan commented 1 year ago

Description

I occasionally meet [ni] Detected ${agent} but it doesn't seem to be installed. at first install while the agent is actually installed.

It would be normal in the second trial while the situation comes out and that does make me confused.

I am not sure this PR. But maybe have something to do with it?

Linked Issues

Additional context

antfu commented 1 year ago

I think it should always be lowercases: https://nodejs.org/api/os.html#osplatform