-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
This is a regression from v0.136.1.
error log
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/nanoid/non-secure/index.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/list.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/fastq/test/example.ts'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/nanoid/url-alphabet/index.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/map-generator.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/no-work-result.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.stat/out/providers/sync.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.walk/out/readers/reader.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/nanoid/non-secure/package.json'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/node.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.scandir/out/providers/sync.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/nanoid/url-alphabet/package.json'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/parse.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/fast-glob/out/utils/errno.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/parser.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.walk/out/providers/stream.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.stat/out/providers/async.d.ts'
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup '/project/node_modules/ansi-regex',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/ansi-regex'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/ansi-regex'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/browserslist',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/browserslist'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/browserslist'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/color-convert',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/color-convert'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/color-convert'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/electron-to-chromium',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/electron-to-chromium'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/electron-to-chromium'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/fraction.js',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/fraction.js'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/fraction.js'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/graceful-fs',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/graceful-fs'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/graceful-fs'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@parcel/watcher',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@parcel/watcher'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@parcel/watcher'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/browserslist'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/browserslist'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@parcel',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@parcel/watcher'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@parcel/watcher'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/chokidar',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/chokidar/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/chokidar/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/braces',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/braces/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/braces/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/enhanced-resolve',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/enhanced-resolve/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/enhanced-resolve/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/escalade',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/escalade/sync'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/escalade/sync'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/dependency-graph',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/dependency-graph/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/dependency-graph/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/emoji-regex',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/emoji-regex/es2015'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/emoji-regex/es2015'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/nanoid',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/nanoid/async'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/nanoid/async'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/tapable',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/tapable/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/tapable/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@tailwindcss/node',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@tailwindcss/node/dist'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@tailwindcss/node/dist'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/fastq',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/fastq'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/fastq'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/detect-libc',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/detect-libc'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/detect-libc'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/autoprefixer',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/autoprefixer/lib/hacks'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/autoprefixer/lib/hacks'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/fs-extra',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/fs-extra/lib/ensure'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/fs-extra/lib/ensure'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/yaml',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/yaml/dist/doc'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/yaml/dist/doc'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@nodelib/fs.walk',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@nodelib/fs.walk/out/providers'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@nodelib/fs.walk/out/providers'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@nodelib/fs.stat',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@nodelib/fs.stat/out'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@nodelib/fs.stat/out'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/@nodelib',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/@nodelib/fs.stat/out'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/@nodelib/fs.stat/out'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/cliui',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/cliui'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/cliui'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/project/node_modules/fast-glob',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/project/node_modules/fast-glob/out/providers'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/project/node_modules/fast-glob/out/providers'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/fast-glob/out/providers/filters/error.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.walk/out/providers/sync.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/fast-glob/out/utils/fs.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/postcss.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.walk/out/readers/sync.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/nanoid/non-secure/index.d.ts'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.stat/out/types/index.d.ts'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/postcss/lib/previous-map.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/project/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts'
npm error code EACCES
npm error syscall mkdir
npm error path /var/hugo/.npm
npm error errno -13
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/var/hugo/.npm"
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Watching for changes in /project/{archetypes,assets,content,layouts,package.json,postcss.config.js,static}
Watching for config changes in /project/config/_default, /project/go.mod
Start building sites …
hugo v0.136.2+extended linux/amd64 BuildDate=unknown VendorInfo=docker
ERROR render of "page" failed: "/project/layouts/_default/tailwindcss.html:16:23": execute of template failed: template: _default/tailwindcss.html:16:23: executing "main" at <.Content>: error calling Content: TAILWINDCSS: failed to transform "/temp/css" (application/octet-stream): npm error code EACCES
npm error syscall mkdir
npm error path /var/hugo/.npm
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/var/hugo/.npm"
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR POSTCSS: failed to transform "/temp/css" (application/octet-stream): npm error code EACCES
npm error syscall mkdir
npm error path /var/hugo/.npm
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/var/hugo/.npm"
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
ERROR TAILWINDCSS: failed to transform "/temp/css" (application/octet-stream): npm error code EACCES
npm error syscall mkdir
npm error path /var/hugo/.npm
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/var/hugo/.npm"
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Built in 743 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/project/layouts/_default/postcss.html:20:23": execute of template failed: template: _default/postcss.html:20:23: executing "main" at <.Content>: error calling Content: POSTCSS: failed to transform "/temp/css" (application/octet-stream): npm error code EACCES
npm error syscall mkdir
npm error path /var/hugo/.npm
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/var/hugo/.npm"
npm error Log files were not written due to an error writing to the directory: /var/hugo/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
To test:
mkdir -f $Env:LocalAppData/hugo_cache
git clone https://github.com/jmooring/hugo-docker-test
cd hugo-docker-test
docker run --rm -v .:/project -v $Env:LocalAppData/hugo_cache:/cache -p 1313:1313 ghcr.io/gohugoio/hugo:v0.136.2 server --bind="0.0.0.0"
cc: @dvdksn