-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-npm.bat
More file actions
30 lines (25 loc) · 690 Bytes
/
fix-npm.bat
File metadata and controls
30 lines (25 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
echo ========================================
echo NPM Error Fixer - Budget Tracker Pro
echo ========================================
echo.
echo [1/5] Cleaning npm cache...
call npm cache clean --force
echo.
echo [2/5] Removing node_modules...
if exist node_modules rmdir /s /q node_modules
echo.
echo [3/5] Removing package-lock.json...
if exist package-lock.json del package-lock.json
echo.
echo [4/5] Reinstalling dependencies...
call npm install
echo.
echo [5/5] Done! Try running your project now.
echo.
echo Commands you can use:
echo npm start - Start the server
echo npm run dev - Start with auto-reload
echo node server.js - Start directly
echo.
pause