跳至主要內容
版本:11 & 12

pnpm import

pnpm import 指令能幫您匯入其他套件管理器的 lockfile 檔案並產生 pnpm-lock.yaml。 支援的來源檔案:

  • package-lock.json
  • npm-shrinkwrap.json
  • yarn.lock

Note that if you have workspaces you wish to import dependencies for, they will need to be declared in a pnpm-workspace.yaml file beforehand.