unable to install npm@10.8.2
Answered
Polish Lowland Sheepdog posted this in #help-forum
Polish Lowland SheepdogOP
I am unable to install npm@10.8.2, I do npm install -g npm@10.8.2, says it changed 13 files and then when I do npm --version it gives me npm 10.8.1
40 Replies
Polish Lowland SheepdogOP
name@name-air ~ % npm install -g npm@10.8.2
changed 13 packages in 1s
22 packages are looking for funding
run
name@name-air ~ % npm --version
10.8.1
changed 13 packages in 1s
22 packages are looking for funding
run
npm fund for detailsname@name-air ~ % npm --version
10.8.1
Gray Flycatcher
Did you clear the cashe?
Polish Lowland SheepdogOP
yep
Gray Flycatcher
sometimes the npm cache might cause issues
Polish Lowland SheepdogOP
i'll do it again
Gray Flycatcher
now I'd like you to follow me step by step
after clesring cache
npx npm@10.8.2 install -g npm@10.8.2not yet? oterwise you can force the installation of the specific version
npm install -g npm@10.8.2 --forcetry with
npm config get prefix and show me the outputPolish Lowland SheepdogOP
okay
yang@yangs-air ~ % npm config get prefix
/Users/yang/C:UsersyangAppDataRoamingnpm
yang@yangs-air ~ %
/Users/yang/C:UsersyangAppDataRoamingnpm
yang@yangs-air ~ %
Gray Flycatcher
Does the output point to the directory where npm is installed?
Polish Lowland SheepdogOP
i don't believe so
yang@yangs-air ~ % which npm
/opt/homebrew/bin/npm
/opt/homebrew/bin/npm
Gray Flycatcher
ok, let me seee
@Polish Lowland Sheepdog yang@yangs-air ~ % which npm
/opt/homebrew/bin/npm
Gray Flycatcher
is that correct one?
@Gray Flycatcher is that correct one?
Polish Lowland SheepdogOP
i have no idea at this point, that's just where my npm is currently installed apparently
Gray Flycatcher
Ok, I think the issue was from the npm configuration path
try with
npm config set prefix /opt/homebrewPolish Lowland SheepdogOP
and now download?
install*
yes!
it worked
Gray Flycatcher
reinstall
Polish Lowland SheepdogOP
thank you so much, I will keep this in mind for future problems
Gray Flycatcher
npm install -g npm@10.8.2 --force@Polish Lowland Sheepdog thank you so much, I will keep this in mind for future problems
Gray Flycatcher
I am glad to hear that.
If you have any questions more, feel free to ask. you can send me friend require.
@Gray Flycatcher If you have any questions more, feel free to ask. you can send me friend require.
Polish Lowland SheepdogOP
yeah please check dms, there's a new issue
@Polish Lowland Sheepdog mark a solution
@Arinji <@601121035823218862> mark a solution
Polish Lowland SheepdogOP
how 😭
Original message was deleted
@Polish Lowland Sheepdog
Polish Lowland SheepdogOP
delete everything and reinstall.
Answer
@Polish Lowland Sheepdog delete everything and reinstall.
Would be better to mark the person who helped you as the answer
@Arinji This thing
Polish Lowland SheepdogOP
didn't work
what i wrote did work for me
Kk