livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.58k stars 179 forks source link

internal/cli/create: fix scaffolding when outside of $GOPATH. #167

Closed matthewmueller closed 2 years ago

matthewmueller commented 2 years ago

Closes: #166

012e commented 2 years ago

I can't seem to create a project

❯ bud create --module=github.com/my/app test

added 7 packages, and audited 8 packages in 3s

found 0 vulnerabilities
npm ERR! code EACCES
npm ERR! syscall unlink
npm ERR! path /usr/lib/node_modules/livebud
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, unlink '/usr/lib/node_modules/livebud'
npm ERR!  [Error: EACCES: permission denied, unlink '/usr/lib/node_modules/livebud'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'unlink',
npm ERR!   path: '/usr/lib/node_modules/livebud'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/huy/.npm/_logs/2022-06-28T05_56_07_435Z-debug-0.log
| exit status 243

The unfinished project is in /tmp/bud-create-939478124. bud create with super user privilege works.

Previously, after create a project I will have to do this to make it work.

matthewmueller commented 2 years ago

@012e which version are you on?