Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running Vite build following YouTube video, also problem installing as in readme -- Error Node Module esbuild #6

Open
5IM-I-LAR opened this issue Jul 9, 2021 · 2 comments

Comments

@5IM-I-LAR
Copy link

5IM-I-LAR commented Jul 9, 2021

I'm having a problem initializing Vite build with npm in VSCode...

When I try to install:

    npm init @vitejs/app
    Select a framework: vanilla
    Select a variant:

the options aren't (like I see in the YouTube tutorial)

    >JavaScript
    >TypesScript

they are

     >vanilla
     >vanilla-ts

If I go ahead with the 'vanilla' option (as there is no 'JavaScript' option for some reason??), am receiving error on npm install.

The problem seems to be with the esbuild?

npm ERR! path /../prjct-vite/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js

Does anyone else have any experince with this?

I'm stuck and don't know where to go to find answers...

npm -v7.19.1
node -v14.17.3

form the debug log:

133 error code 1
134 error path /../prjct-vite/node_modules/esbuild
135 error command failed
136 error command sh -c node install.js
137 error dyld: Symbol not found: _clock_gettime
137 error   Referenced from: /../prjct-vite/node_modules/esbuild/bin/esbuild__
137 error   Expected in: flat namespace
137 error
137 error The version of the downloaded binary is incorrect: Command failed: /../prjct-vite/node_modules/esbuild/bin/esbuild__ --version
137 error dyld: Symbol not found: _clock_gettime
137 error   Referenced from: /../prjct-vitenode_modules/esbuild/bin/esbuild__
137 error   Expected in: flat namespace
137 error
137 error
137 error Install unsuccessful
138 verbose exit 1

If follow readme only:

If I try to run:

git clone 
npm install
npm run dev

also geting errors on npm install:

npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm ERR! code 1
npm ERR! path /../prjct-vite/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! dyld: Symbol not found: _clock_gettime
npm ERR!   Referenced from: /../prjct-vite/node_modules/esbuild/bin/esbuild__
npm ERR!   Expected in: flat namespace
npm ERR! 
npm ERR! The version of the downloaded binary is incorrect: Command failed: /../prjct-vite/node_modules/esbuild/bin/esbuild__ --version
npm ERR! dyld: Symbol not found: _clock_gettime
npm ERR!   Referenced from: /../prjct-vite/node_modules/esbuild/bin/esbuild__
npm ERR!   Expected in: flat namespace
npm ERR! 
npm ERR! 
npm ERR! Install unsuccessful

Thanks in advace!

@5IM-I-LAR 5IM-I-LAR changed the title Getting error with Vite framework install... Getting error with Vite framework install as in the YouTube tutorial... Jul 12, 2021
@5IM-I-LAR 5IM-I-LAR changed the title Getting error with Vite framework install as in the YouTube tutorial... Getting error with Vite build (as in YouTube video) also error if try running 'git clone' -- problem with esbuild? Jul 12, 2021
@5IM-I-LAR 5IM-I-LAR changed the title Getting error with Vite build (as in YouTube video) also error if try running 'git clone' -- problem with esbuild? Problem running Vite build following YouTube video, also problem installing as in readme -- Error Node Module esbuild Jul 12, 2021
@DrewDevero
Copy link

DrewDevero commented Jul 27, 2021

If you're still having issues, I wound up having issues using Vite as well (I'm on windows), so I went with rendering using React instead.
Live version works at Three D Website
Code is here: Three D Code
Any more tips from the fireship team welcome. Hope this helps.

@spencerbart
Copy link

I am having the same issue. DrewDevero's code works though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants