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 is tryed rename plugin inside container #224

Open
OlehObodin opened this issue Mar 21, 2022 · 0 comments
Open

Npm is tryed rename plugin inside container #224

OlehObodin opened this issue Mar 21, 2022 · 0 comments

Comments

@OlehObodin
Copy link

Issue Description

After rerun the container npm is tried to rename plugin name. But it has not permission. And should it have to do it at all?

Steps to Reproduce

  1. make init-dev
  2. Link the plugin
  3. make stop
  4. make start
npm ERR! code EACCES
api_1    | npm ERR! syscall rename
api_1    | npm ERR! path /usr/local/src/app/node_modules/@itleadopencommerce/api-plugin-products-volume
api_1    | npm ERR! dest /usr/local/src/app/node_modules/@itleadopencommerce/.api-plugin-products-volume-cxbdezTS
api_1    | npm ERR! errno -13
api_1    | npm ERR! Error: EACCES: permission denied, rename '/usr/local/src/app/node_modules/@itleadopencommerce/api-plugin-products-volume' -> '/usr/local/src/app/node_modules/@itleadopencommerce/.api-plugin-products-volume-cxbdezTS'
api_1    | npm ERR!  [Error: EACCES: permission denied, rename '/usr/local/src/app/node_modules/@itleadopencommerce/api-plugin-products-volume' -> '/usr/local/src/app/node_modules/@itleadopencommerce/.api-plugin-products-volume-cxbdezTS'] {
api_1    | npm ERR!   errno: -13,
api_1    | npm ERR!   code: 'EACCES',
api_1    | npm ERR!   syscall: 'rename',
api_1    | npm ERR!   path: '/usr/local/src/app/node_modules/@itleadopencommerce/api-plugin-products-volume',
api_1    | npm ERR!   dest: '/usr/local/src/app/node_modules/@itleadopencommerce/.api-plugin-products-volume-cxbdezTS'
api_1    | npm ERR! }
api_1    | npm ERR! 
api_1    | npm ERR! The operation was rejected by your operating system.
api_1    | npm ERR! It is likely you do not have the permissions to access this file as the current user
api_1    | npm ERR! 
api_1    | npm ERR! If you believe this might be a permissions issue, please double-check the
api_1    | npm ERR! permissions of the file and its containing directories, or try running
api_1    | npm ERR! the command again as root/Administrator.
api_1    | 
api_1    | npm ERR! A complete log of this run can be found in:
api_1    | npm ERR!     /home/node/.npm/_logs/2022-03-20T21_19_37_542Z-debug-0.log

Possible Solution

Change folder permissions, but not very good idea, because in npm registry we have normal name

Versions

4.1.5

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

1 participant