如何解决为什么我的NPM缓存文件夹位于./false/_cacache中?
我正在使用Docker,PhpStorm,VS Code的NPM项目,并在本地和通过Docker运行。
在哪种情况下此文件夹会放入./false/
中?过去有没有人遇到过这种情况并愿意分享发现的结果?
project-root-dir
|__ false
|__ _cacache
|__ <hash>
|__ node_modules
|__ Dockerfile
|__ main.js
|__ package.json
我怀疑这行是在_cacache
内创建文件夹false
的文件夹:
FROM node:12
# ...
# Some directory is missing at this point and results in `false` ?
RUN npm install -g npm
解决方法
这是因为#tab-2-content {
display: grid;
grid-template-rows: 1fr 2fr;
width: 70%;
margin: 0 auto;
grid-gap: 0;
}
.tab-2-content-bottom img {
width: 250px;
margin-bottom: 1rem;
}
.tab-2-content-top {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1rem;
justify-content: center;
align-items: center;
}
.tab-2-content-top .push {
justify-self: right;
}
.tab-2-content-bottom {
display: grid;
grid-template-columns: repeat(3,1fr);
text-align: center;
}
#tab-2-content .btn {
background: var(--primary-color);
padding: 1rem 1.8rem;
border-radius: 0.1rem;
text-transform: uppercase;
}
.tab-2-content-top div {
padding-bottom: 2rem;
}
#tab-2-content div h2 {
margin-bottom: 1.5rem;
font-weight: normal;
margin-right: 1rem;
margin-left: 1rem;
max-width: 500px;
}
.tab-2-content-bottom figcaption {
width: 200px;
margin: auto;
}
/* the problem happens when browser width < 700px I have the following change in my media queries */
@media screen and (max-width:700px) {
.tab-2-content-bottom {
grid-template-columns: 1fr;
grid-gap: 2rem;
align-items: start;
border: 2px solid red;
}
.tab-2-content-top {
grid-template-columns: 1fr;
grid-gap: 0;
/*max-height: 300px;*/
border: 2px solid red;
}
#tab-2-content div h2 {
margin: 0;
text-align: center;
}
.tab-2-content-top .push {
justify-self: center;
align-self: start;
}
}
的NPM配置已在某处设置为<div id="tab-2-content" class="tab-content-item">
<div class="tab-2-content-top">
<h2>Watch TV shows and movies anytime,anywhere — personalized for you.</h2>
<div class="push">
<a href="#" class="btn">Watch free for 30 days</a>
</div>
</div>
<div class="tab-2-content-bottom">
<figure>
<img src="img/tab-content-2-1.png" alt="#" />
<figcaption>
<h4>Watch on your TV</h4>
<p>Smart TVs,PlayStation,Xbox,Chromecast,Apple TV,Blu-ray players and more.</p>
</figcaption>
</figure>
<figure>
<img src="img/tab-content-2-2.png" alt="#" />
<figcaption>
<h4>Watch instantly or download for later</h4>
<p>Available on phone and tablet,wherever you go.</p>
</figcaption>
</figure>
<figure>
<img src="img/tab-content-2-3.png" alt="#" />
<figcaption>
<h4>Use any computer</h4>
<p>Watch right on Netflix.com.</p>
</figcaption>
</figure>
</div>
</div>
。您可能希望禁用缓存,但是cache
需要一个 string ,即缓存目录的路径。
在这种情况下,是因为您与cache
一起跑步;您以false
身份通过的所有内容会将--no-cache
的配置设置为--no-<name>
。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。