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

tar: bin/npx: Cannot utime: Operation not permitted #35

Open
delmicio opened this issue Aug 7, 2018 · 7 comments
Open

tar: bin/npx: Cannot utime: Operation not permitted #35

delmicio opened this issue Aug 7, 2018 · 7 comments

Comments

@delmicio
Copy link
Contributor

delmicio commented Aug 7, 2018

Hi,
I'm getting this error when using composer install:

Installing NodeJS v8.10.0                                                                                                                                                                               
  Downloading from https://nodejs.org/dist/v8.10.0/node-v8.10.0-linux-x64.tar.gz                                                                                                                        
Downloading (100%)tar: bin/npx: Cannot utime: Operation not permitted                                                                                                                                   
tar: bin/npm: Cannot utime: Operation not permitted                                                                                                                                                     
tar: Exiting with failure status due to previous errors                                                                                                                                                 
                                                                                                                                                                                                        
                                                                                                                                                                                                        
  [Mouf\NodeJsInstaller\NodeJsInstallerException]                                                                                                                                                       
  An error occurred while untaring NodeJS (vendor/node-v8.10.0-linux-x64.tar.gz) to vendor/nodejs/nodejs

I'm using this config:

"mouf": {
            "nodejs": {
                "version": "8.10.0",
                "forceLocal": true
            }
        }

BTW it was working when using root user but now I'm using a non roor user.

@delmicio
Copy link
Contributor Author

delmicio commented Aug 7, 2018

Using composer run-script download-nodejs is the same error.

@delmicio
Copy link
Contributor Author

delmicio commented Aug 7, 2018

Running composer run-script download-nodejs as root works OK.

Using docker and laradock.

@moufmouf
Copy link
Member

Hey @delmicio !

Does it happen if you delete all your vendor directory before running "composer install" as non-root?
Maybe some files in "vendor/nodejs/nodejs" already belong to the root user (and therefore composer as non-root cannot write in the directory?)

Let me know!

@delmicio
Copy link
Contributor Author

Hi @moufmouf , I've tried againa with no vendor dir at all and the error is still there.

@moufmouf
Copy link
Member

Sorry, but I really can't reproduce this error.

Could you let me know more about your OS?
Linux? Windows? MacOS? Anything special with the file system? Is your current user the owner of all the project files?

@faelgabriel
Copy link

I am having the same problem.

This issue is happening using laradock with its default user without be root (laradock user), which is docker-composer.yaml with some containers already configured.
Laradock: laradock.io

@sampoturve
Copy link

sampoturve commented Jan 27, 2023

Bumped into this oldie this week so just reporting here just in case it helps someone.

Running macOS on M1 Macbook with Lando + Docker. No matter if ran with composer install or composer run-script download-nodejs, if there was vendor folder or not, which permissions were changed, the same error always appeared.

Installing NodeJS v19.5.0
  Downloading from https://nodejs.org/dist/v19.5.0/node-v19.5.0-linux-x64.tar.gz
Downloading (100%)tar: bin/corepack: Cannot open: Permission denied
tar: bin/npx: Cannot open: Permission denied
tar: bin/npm: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors

In NodeJsInstaller.php line 288:

  An error occurred while untaring NodeJS (vendor/node-v19.5.0-linux-x64.tar.gz) to vendor/nodejs/nodejs

Finally the culprit for this issue was the VirtioFS file sharing setting for Docker. Using gRPC FUSE works fine.

Screenshot 2023-01-27 at 15 31 25

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

4 participants