[英]How can I unset this command “npm config set cache ”C:/Users/ASIMIM/AppData/Roaming/npm-cache“ --global”
npx create-react-app my-app wasn't working for me it was showing this npx create-react-app my-app 对我不起作用它正在显示这个
then i went on stackoverflow did the same thing that was shown that was "npm config set cache "C:/Users/ASIMIM/AppData/Roaming/npm-cache" --global" and now it is showing this然后我继续stackoverflow做了同样的事情,显示的是“npm config set cache“C:/Users/ASIMIM/AppData/Roaming/npm-cache”--global”,现在它显示了这个
help me to unset this command "npm config set cache "C:/Users/ASIMIM/AppData/Roaming/npm-cache" --global"帮我取消设置这个命令 "npm config set cache "C:/Users/ASIMIM/AppData/Roaming/npm-cache" --global"
Assuming you previously had it set to the default value, you can delete the key.假设您之前已将其设置为默认值,您可以删除该键。
To delete the cache
key from all config files:从所有配置文件中删除
cache
键:
npm config delete cache
If you want to be extra careful, you can edit just the global config file:如果你想格外小心,你可以只编辑全局配置文件:
npm config edit --global
If you choose the edit route, you will need to find the right entry in the file for cache
and comment it out or delete it.如果选择编辑路径,则需要在文件中找到正确的
cache
条目并将其注释掉或删除。
(If you had previously set the value to something other than the default and want to restore that value, re-run your npm config cache set
command with the value you had before.) (如果您之前将该值设置为默认值以外的值并希望恢复该值,请使用之前的值重新运行
npm config cache set
命令。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.