From ab929150e672045232c1ef5dabd46f9a8fb85d97 Mon Sep 17 00:00:00 2001 From: rick Date: Tue, 30 Jan 2024 03:23:50 +0000 Subject: [PATCH] chore: add .npmrc file add the following config item package-import-method=clone-or-copy --- .npmrc | 1 + Dockerfile | 1 + 2 files changed, 2 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..e278360 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-import-method=clone-or-copy diff --git a/Dockerfile b/Dockerfile index c97b160..e4e94c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM node:19.9.0 COPY .nirc /root/.nirc +COPY .npmrc /root/.npmrc RUN npm i -g @antfu/ni RUN npm i -g pnpm