Comments (4)
@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.
@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.
@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.
@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)
- [BUG] OpenBSD usage failure HOT 1
- corp-jones-damarcus:patch-1 HOT 1
- [BUG] `npm init` does not use locally installed version of given package. HOT 1
- https://github.com/npm/cli/commit/dbe7d983d184fb00c85f7b34839a123057029c8b HOT 2
- [DOCS] npm doesn't install the latest tagged version if engines are invalid HOT 6
- [BUG] npm dist-tag rm only removes the last recently deleted tag HOT 9
- [BUG] `npm publish --provenance` The default value `public` isn't used HOT 5
- [Enchancement] Check files that import the package before uninstalling HOT 1
- [BUG] npm docs with no pkgname arg returns undefined HOT 2
- [BUG] No README.md on npmjs ? HOT 4
- [BUG] Problem / error links are incorrect when path contains prefix before space HOT 3
- [BUG] npm version -ws never update dependencies in package.json HOT 3
- npm ERR! Exit handler never called! npm ERR! This is an error with npm itself. HOT 1
- Licence missing for npm update
- [BUG] <title> HOT 1
- [BUG] npm install --save three: No matching version found for three@^0.777.1. HOT 3
- (npm error Exit handler never called!:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError HOT 1
- [BUG] Unable to upgrade two packages with a dep and peer dep on the same package that is also bumped HOT 5
- npm i changing package-lock.json HOT 4
- [BUG] Windows npm install --prefix errors and looks for the package.json in the cwd HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.