Giter Club home page Giter Club logo

Comments (2)

8itlew7r avatar 8itlew7r commented on July 22, 2024
> npx eslint script.js
Need to install the following packages:
  [email protected]
Ok to proceed? (y)
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /home/my_acct/.npm/_cacache/tmp/7429dcee
npm ERR! dest /home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/home/my_acct/.npm/_cacache/tmp/7429dcee' -> '/home/my_acct/.npm/_cacache/content-v2/sha512/5f/c7/2a30b2e27bb2ac3540d277378df0560af6b12de03b7aeceb06fc33469d84d20c11b8b850091419d47a257ecc2540bf0172e7a22333db07e758d568484dc7'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/my_acct/.npm/_logs/2024-03-14T07_42_08_458Z-debug-0.log

Clear the npm cache:

npm cache clean --force

Delete the node_modules folder and package-lock.json file:

rm -rf node_modules package-lock.json

Reinstall the dependencies:

npm install

Ensure you are using the latest version of npm:

npm install -g npm@latest


The matter or topic being tracked and discussed through this issue thread has been satisfactorily resolved or addressed, so the issue can now be marked as completed and archived.

from anotherterm.

8itlew7r avatar 8itlew7r commented on July 22, 2024

The matter or topic being tracked and discussed through this issue thread has been satisfactorily resolved or addressed, so the issue can now be marked as completed and archived.

The issue with NPM (Node Package Manager) and pip/pipx (Python package managers) appears to be unrelated since they utilize different temporary directories during package installation. While the NPM problem has been resolved, pipx continues to encounter a permission denied error, despite the account having full access to the /tmp directory.

PIP STDOUT
----------
Collecting ruff
  Downloading ruff-0.4.4.tar.gz (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 1.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [39 lines of output]
      Collecting maturin<2.0,>=1.0
        Downloading maturin-1.5.1.tar.gz (181 kB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 262.6 kB/s eta 0:00:00
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [15 lines of output]
            /tmp/pip-build-env-ast6oayq/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:83: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
              corresp(dist, value, root_dir)
            running dist_info
            creating /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info
            writing /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/PKG-INFO
            writing dependency_links to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/dependency_links.txt
            writing requirements to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/requires.txt
            writing top-level names to /tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/top_level.txt
            writing manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            reading manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt'
            creating '/tmp/pip-modern-metadata-q_kekdhn/maturin-1.5.1.dist-info'
            error: [('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/not-zip-safe', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/not-zip-safe', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/not-zip-safe'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/PKG-INFO', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/PKG-INFO', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/PKG-INFO'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/dependency_links.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/dependency_links.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/dependency_links.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/requires.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/requires.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/requires.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/top_level.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/top_level.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/top_level.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info/SOURCES.txt', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/SOURCES.txt', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__/SOURCES.txt'"), ('/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info', '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__', "[Errno 13] Permission denied: '/tmp/pip-modern-metadata-q_kekdhn/maturin.egg-info.__bkp__'")]
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed
      
      × Encountered error while generating package metadata.
      ╰─> See above for output.
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

from anotherterm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.