Skip to content

Commit 9cd1c24

Browse files
committed
Fix for npm optional dependencies issue
Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (npm/cli#4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
1 parent d680d51 commit 9cd1c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"prebuild": "npm install",
8+
"prebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install",
99
"build": "tsc && vite build",
1010
"preview": "vite preview"
1111
},

0 commit comments

Comments
 (0)