fix: index install

This commit is contained in:
lucas-neynar
2025-03-11 16:25:17 -07:00
parent efb40c648e
commit d264ebf9e0

7
bin/index.js Normal file → Executable file
View File

@@ -87,12 +87,7 @@ async function init() {
// Install dependencies
console.log('\nInstalling dependencies...');
try {
execSync('npm install --legacy-peer-deps', { cwd: projectPath, stdio: 'inherit' });
} catch (error) {
console.log('\nNPM install failed. Trying with yarn...');
execSync('yarn install', { cwd: projectPath, stdio: 'inherit' });
}
execSync('npm install', { cwd: projectPath, stdio: 'inherit' });
// Initialize git repository
console.log('\nInitializing git repository...');