Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM errror building in poudriere #60

Open
chmeeedalf opened this issue Aug 6, 2023 · 2 comments
Open

NPM errror building in poudriere #60

chmeeedalf opened this issue Aug 6, 2023 · 2 comments

Comments

@chmeeedalf
Copy link

Trying to build www/photoprism on arm64 13.2-RELEASE and seeing the following error at the start of build:

npm WARN idealTree Removing dependencies.webpack-cli in favor of
devDependencies.webpack-cli
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /nonexistent
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/nonexistent'
npm ERR! [Error: EACCES: permission denied, mkdir '/nonexistent'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/nonexistent'
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! Log files were not written due to an error writing to the directory:
/nonexistent/.npm/_logs
npm ERR! You can rerun the command with --loglevel=verbose to see the logs in
your terminal
*** Error code 243

I have poudriere.conf configured as described in the README.

@lapo-luchini
Copy link
Contributor

lapo-luchini commented Sep 26, 2023

I'm not sure is this, but poudriere does not allow internet access during build and the current version of this port still does that. It has to be download in pre-fetch so that build can be done offline.

Edit: Oh, sorry, I didn't notice you already changed poudriere.conf to allow that.

@chmeeedalf
Copy link
Author

The problem appears that it's trying to make changes to $HOME, and $HOME for user nobody is /nonexistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants