Lam Pham
Lam Pham
CDCloudflare Developers
Created by Lam Pham on 3/29/2024 in #pages-help
Can not build pages with gatsby?
I have errors when building gatsby site:
NestedError: Cannot copy from `public/189f64f3c732f41156006262942a538d3c551006

10:08:48.958   -7bd9cdef60bb9906bbc3.js.LICENSE.txt` to `/opt/build/cache/cwd/public/189f64f3

10:08:48.959   c732f41156006262942a538d3c551006-7bd9cdef60bb9906bbc3.js.LICENSE.txt`: Cannot

10:08:48.959   create directory `/opt/build/cache/cwd/public`: EACCES: permission denied, mkd

10:08:48.959   ir '/opt/build/cache'
NestedError: Cannot copy from `public/189f64f3c732f41156006262942a538d3c551006

10:08:48.958   -7bd9cdef60bb9906bbc3.js.LICENSE.txt` to `/opt/build/cache/cwd/public/189f64f3

10:08:48.959   c732f41156006262942a538d3c551006-7bd9cdef60bb9906bbc3.js.LICENSE.txt`: Cannot

10:08:48.959   create directory `/opt/build/cache/cwd/public`: EACCES: permission denied, mkd

10:08:48.959   ir '/opt/build/cache'
I tried to use v2, but I had other error:
2024-03-29T03:40:26.381076Z  ➤ YN0000: Failed with errors in 22s 764ms

2024-03-29T03:40:26.520086Z  Error: Exit with error code: 1

2024-03-29T03:40:26.520356Z      at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)

2024-03-29T03:40:26.520459Z      at Object.onceWrapper (node:events:652:26)

2024-03-29T03:40:26.520571Z      at ChildProcess.emit (node:events:537:28)

2024-03-29T03:40:26.520697Z      at ChildProcess._handle.onexit (node:internal/child_process:291:12)

2024-03-29T03:40:26.530347Z  Failed: build command exited with code: 1

2024-03-29T03:40:27.689311Z  Failed: error occurred while running build command
2024-03-29T03:40:26.381076Z  ➤ YN0000: Failed with errors in 22s 764ms

2024-03-29T03:40:26.520086Z  Error: Exit with error code: 1

2024-03-29T03:40:26.520356Z      at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)

2024-03-29T03:40:26.520459Z      at Object.onceWrapper (node:events:652:26)

2024-03-29T03:40:26.520571Z      at ChildProcess.emit (node:events:537:28)

2024-03-29T03:40:26.520697Z      at ChildProcess._handle.onexit (node:internal/child_process:291:12)

2024-03-29T03:40:26.530347Z  Failed: build command exited with code: 1

2024-03-29T03:40:27.689311Z  Failed: error occurred while running build command
Anyone has any idea to fix?
1 replies