supabase installation give Typescript error
# help-and-questions
r
Hello, I'm trying to install supabase on our repo, but running the cli installation codes resulted in an error:
Copy code
admin@AFVFHGQBRQ6L7 AIKnowledgebase % npm install -S @supabase/supabase-js
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: class-variance-authority@0.4.0
npm ERR! Found: typescript@5.0.4
npm ERR! node_modules/typescript
npm ERR!   typescript@"5.0" from the root project
npm ERR!   peerOptional typescript@">=3.3.1" from eslint-config-next@13.2.4
npm ERR!   node_modules/eslint-config-next
npm ERR!     eslint-config-next@"13.2.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@">= 4.5.5 < 5" from class-variance-authority@0.4.0
npm ERR! node_modules/class-variance-authority
npm ERR!   class-variance-authority@"^0.4.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: typescript@4.9.5
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@">= 4.5.5 < 5" from class-variance-authority@0.4.0
npm ERR!   node_modules/class-variance-authority
npm ERR!     class-variance-authority@"^0.4.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR!
Can you help resolve this? Thanks in advance
x
just run it again with --legacy-peer-deps
r
Thanks for the response. I did but got these error:
Copy code
admin@AFVFHGQBRQ6L7 AIKnowledgebase % npm install --legacy-peer-deps      

up to date, audited 580 packages in 603ms

208 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
admin@AFVFHGQBRQ6L7 AIKnowledgebase % npm install -S @supabase/supabase-js --legacy-peer-deps 

up to date, audited 580 packages in 711ms

208 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
admin@AFVFHGQBRQ6L7 AIKnowledgebase % supabase start
zsh: command not found: supabase
admin@AFVFHGQBRQ6L7 AIKnowledgebase %
x
so it looks like are you trying to run it locally. Make sure that you can find supabase package in the directory you are working. and try using npx before using supabase https://supabase.com/docs/guides/cli
o
``npx supabase start`` @ReactingMe
r
Thanks, that was resolved 🙏