The version of the downloaded binary is incorrect #3305
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
Hi, I'm new to npm and I'm trying to use it to build a vitejs web app, where I plan to use three.js. My system is a macOS Big Sur 11.4.
The version of node is v16.2.0, npm version is 7.13.0, the yarn version is 1.22.10 and I installed things using nvm, i.e
which node
returns~/.nvm/versions/node/v16.2.0/bin/node
OK, now when I try to create a new vitejs app:
npm init @vitejs/app
things go as planned and I'm able to select vanilla JavaScript. I thencd
into the project and runnpm install
but I get the following errors:If I try with yarn:
yarn create @vitejs/app
, I'm again able to select vanilla JavaScript. If I enter the project directory and runyarn
I get:The only difference is that with
yarn
, anode_modules
directory is created, andesbuild
is there. So, if I now trynpm install
it seems that things are working but runningnpm run dev
returns the following error:I did try to clean the cache uninstall and reinstall npm using homebrew, etc. Nothing is working. Any help will be much appreciated.
Expected Behavior
Smooth running and creation of a localhost environment
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: