Skip to content

Commit 55be07a

Browse files
committed
fix: override graceful-fs installation for Node 22 compatibility
1 parent c084bb3 commit 55be07a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ENV IONIC_VERSION 7.2.1
44

55
RUN apt-get update && apt-get install -y git bzip2 openssh-client && \
66
npm install -g --unsafe-perm @ionic/cli@${IONIC_VERSION} && \
7+
# Fix graceful-fs compatibility with Node.js 22 after Ionic CLI installation
8+
npm install -g graceful-fs@latest && \
9+
npm update -g && \
10+
npm rebuild && \
711
ionic --version && \
812
cd /tmp && \
913
ionic start myNewProject blank --type=react --capacitor && \

0 commit comments

Comments
 (0)