Skip to content

stuck at Cleaning dist directory: ./dist #267

@hanzoz

Description

@hanzoz

Hi,

I have been stuck with this error without any solution. When I tried to publish the app to my private npm repository and it got stuck when run prepack.

It's stuck at "cleaning dist directory ./dist which doesn't make sense because this script is only to remove any files in dist folder if there is a dist folder but for my case, its a brand new docker so it should have continue.

Is there any solution because I can't seems to get any further except the log below, any help will be much appreciated, thank you.

package.json

"script": {
...
"prepack": "nuxt-module-build build",
"release": "pnpm run build && pnpm publish --no-git-checks",
...
}

log from the job

`Running with gitlab-runner 15.1.0 (76984217)
  on r9 SNC7fvKv
Preparing the "docker" executor 00:06
Using Docker executor with image registry.xxx.net/base-images/node:latest ...
Pulling docker image registry.xxx.net/base-images/node:latest ...
Using docker image sha256:25429c65fa229fea8c9ad2c261289fe34917a5f605649bd8ac50619cfd2afecd for registry.xxx.net/base-images/node:latest with digest registry.xxx.net/base-images/node@sha256:5e5b70cf41538d9c34d182a8e0c5f5801b247f5cc61faaaaa65133538df174d3 ...
Preparing environment 00:02
Running on runner-snc7fvkv-project-29379-concurrent-0 via 39be3f7ff36d...
Getting source from Git repository 00:04
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/name/testmodule/.git/
Checking out d55524a9 as development...
Removing module/dist/
Removing module/node_modules/
Removing nuxt3/dist/
Removing report.json
Skipping Git submodules setup
Downloading artifacts 00:03
Downloading artifacts for nuxt3_compile (4773111)...
Downloading artifacts from coordinator... ok        id=4773111 responseStatus=200 OK token=glcbt-64
Downloading artifacts for trivy (4773113)...
Downloading artifacts from coordinator... ok        id=4773113 responseStatus=200 OK token=glcbt-64
Executing "step_script" stage of the job script
Using docker image sha256:25429c65fa229fea8c9ad2c261289fe34917a5f605649bd8ac50619cfd2afecd for registry.xxx.net/base-images/node:latest with digest registry.xxx.net/base-images/node@sha256:5e5b70cf41538d9c34d182a8e0c5f5801b247f5cc61faaaaa65133538df174d3 ...
$ cd module
$ npm i -g [email protected]
added 1 package in 2s
1 package is looking for funding
  run `npm fund` for details
$ pnpm i
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1011
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1011, reused 593, downloaded 0, added 0
Progress: resolved 1011, reused 1003, downloaded 0, added 743
Progress: resolved 1011, reused 1003, downloaded 0, added 1011, done
dependencies:
+ @nuxt/kit 3.11.2
devDependencies:
+ @nuxt/devtools 1.2.0
+ @nuxt/eslint-config 0.3.12
+ @nuxt/module-builder 0.6.0
+ @nuxt/schema 3.11.2
+ @nuxt/test-utils 3.12.1
+ @types/node 20.12.11
+ changelogen 0.5.5
+ eslint 9.2.0
+ nuxt 3.11.2
+ typescript 5.4.5
+ vitest 1.6.0
+ vue-tsc 2.0.16
Done in 5.9s
$ NEXUS_NPM_AUTH=$(echo -n "${CI_REPOSITORY_USER}:${CI_REPOSITORY_TOKEN}" | base64)
$ echo "//xxxxxxxx.net/repository/npm-hosted/:_auth=${NEXUS_NPM_AUTH}" >> .npmrc
$ pnpm release
> [email protected] release /builds/ChinKX/testmodule/module
> pnpm run prepack && pnpm publish --no-git-checks
> [email protected] prepack /builds/ChinKX/testmodule/module
> nuxt-module-build build
[info] Building my-module
[info] Cleaning dist directory: `./dist`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions