After installing pkg globally, using pkg to package is stuck for a long time.
Check the dependency installation method. The dependency installed by cnpm will cause this problem. You can use pnpm to install the dependency to solve this problem.