Giter VIP home page Giter VIP logo

Comments (4)

milaninfy avatar milaninfy commented on August 28, 2024

@kavana-14 npm will have appropriate access if it got installed correctly. If you want to change location of cache you can use --cache flag in your command to specify different location for caching. Checkout https://docs.npmjs.com/cli/v10/using-npm/config#cache

also from error log you can try changing permission of that directory to fix.

npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1007390000:0 "/.npm"

from cli.

kavana-14 avatar kavana-14 commented on August 28, 2024

@milaninfy I tried to fix the issue from the error logs, included that command inside the Dockerfile, but got the issue as below,

Step 11/14 : RUN chown -R 1007390000:0 "/.npm"
---> Running in 6dbe5b2a8315

chown: cannot access '/.npm': No such file or directory
The command '/bin/sh -c chown -R 1007390000:0 "/.npm"' returned a non-zero code: 1

I logged into the container shell and check the existence of /.npm directory

$ ls -l /.npm
ls: cannot access '/.npm': No such file or directory
$
$ ls -l ~/.npm
ls: cannot access '//.npm': No such file or directory

> oc rsh client-56975c6c4-x454j
$ npm config get cache
/.npm

I think /.npm reside inside the cache directory

from cli.

milaninfy avatar milaninfy commented on August 28, 2024

@kavana-14 What happens when you set cache to different location does it work for you ?,
npm config set cache ./another/location or you can specify the cache in .npmrc.

from cli.

kavana-14 avatar kavana-14 commented on August 28, 2024

@milaninfy, thank you, setting the cache to different location solved my issue, but the problem is with my browser. I can be able to expose the service and see the web page in my chrome but not possible in Internet Explorer.

from cli.

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.