首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用pacman命令更新Manjaro系统时出错- npm冲突文件错误消息

使用pacman命令更新Manjaro系统时出错- npm冲突文件错误消息
EN

Stack Overflow用户
提问于 2020-01-17 13:40:50
回答 1查看 1.4K关注 0票数 3

当我尝试用命令更新系统"Manjaro“时:

$ sudo pacman -Syyu

同样,在试图更新包"npm“时也会出现错误。声称文件冲突。

我尝试用命令添加它:

$ sudo /usr/lib/node

同样的,我返回了以下...          

代码语言:javascript
复制
/usr/lib/node_modules/ is owned by node-gyp 6.1.0-1
/usr/lib/node_modules/ is owned by semver 7.1.1-1
/usr/lib/node_modules/ is owned by yarn 1.21.1-1

然而,当试图重新运行"sudo pacman -Syyu“时,错误仍然存在。

正如我在一些帖子中建议的那样,已经尝试过了,使用以下命令解决:

$ sudo npm --覆盖/usr/lib/node_ -Svyy模块

尽管如此,错误仍然存在,正如我们在下面的日志中看到的那样:

$ sudo npm --覆盖/usr/lib/node_ -Svyy /npm

代码语言:javascript
复制
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : npm
:: Synchronizing package databases...
 core                                                                                               167,9 KiB   749 KiB/s 00:00 [#############################################################################] 100%
 extra                                                                                             1965,9 KiB  2,21 MiB/s 00:01 [#############################################################################] 100%
 community                                                                                            5,8 MiB  2,96 MiB/s 00:02 [#############################################################################] 100%
 multilib                                                                                           194,8 KiB   885 KiB/s 00:00 [#############################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (1) npm-6.13.6-1

Total Installed Size:  20,63 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                                  [#############################################################################] 100%
(1/1) checking package integrity                                                                                                [#############################################################################] 100%
(1/1) loading package files                                                                                                     [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                               [#############################################################################] 100%
error: failed to commit transaction (conflicting files)
npm: /usr/lib/node_modules/npm/docs/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-access.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-adduser.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-audit.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-bin.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-bugs.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-build.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-bundle.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-cache.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-ci.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-completion.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-config.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-dedupe.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-deprecate.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-dist-tag.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-docs.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-doctor.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-edit.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-explore.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-fund.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-help-search.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-help.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-hook.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-init.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-install-ci-test.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-install-test.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-install.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-link.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-logout.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-ls.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-org.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-outdated.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-owner.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-pack.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-ping.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-prefix.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-profile.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-prune.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-publish.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-rebuild.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-repo.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-restart.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-root.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-run-script.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-search.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-shrinkwrap.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-star.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-stars.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-start.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-stop.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-team.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-test.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-token.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-uninstall.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-unpublish.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-update.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-version.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-view.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm-whoami.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/cli-commands/npm.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/folders.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/install.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/npmrc.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/package-json.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/package-lock-json.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/package-locks.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/configuring-npm/shrinkwrap-json.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/config.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/developers.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/disputes.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/orgs.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/registry.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/removal.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/scope.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/scripts.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/content/using-npm/semver.md exists in filesystem
npm: /usr/lib/node_modules/npm/docs/gatsby-browser.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/gatsby-config.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/gatsby-node.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/gatsby-ssr.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/package-lock.json exists in filesystem
npm: /usr/lib/node_modules/npm/docs/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-access/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-adduser/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-audit/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-bin/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-bugs/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-build/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-bundle/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-cache/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-ci/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-completion/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-config/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-dedupe/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-deprecate/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-dist-tag/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-docs/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-doctor/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-edit/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-explore/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-fund/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-help-search/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-help/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-hook/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-init/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-install-ci-test/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-install-test/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-install/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-link/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-logout/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-ls/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-org/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-outdated/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-owner/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-pack/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-ping/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-prefix/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-profile/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-prune/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-publish/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-rebuild/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-repo/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-restart/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-root/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-run-script/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-search/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-shrinkwrap/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-star/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-stars/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-start/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-stop/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-team/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-test/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-token/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-uninstall/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-unpublish/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-update/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-version/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-view/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm-whoami/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/cli-commands/npm/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/folders/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/install/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/npmrc/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/package-json/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/package-lock-json/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/package-locks/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/configuring-npm/shrinkwrap-json/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/inconsolata/v18/QldKNThLqRwH-OJ1UHjlKGlZ5q4.woff exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/inconsolata/v18/QldKNThLqRwH-OJ1UHjlKGlZ5qg.woff2 exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/inconsolata/v18/QldXNThLqRwH-OJ1UHjlKGHiw71p5_o.woff exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/inconsolata/v18/QldXNThLqRwH-OJ1UHjlKGHiw71p5_w.woff2 exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiByp8kv8JHgFVrLDz8Z1xlEw.woff exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2 exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiByp8kv8JHgFVrLGT9Z1xlEw.woff exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2 exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiEyp8kv8JHgFVrJJfecg.woff2 exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/google-fonts/s/poppins/v9/pxiEyp8kv8JHgFVrJJfedA.woff exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-144x144.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-192x192.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-256x256.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-384x384.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-48x48.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-512x512.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-72x72.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/icons/icon-96x96.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/static/d/2215187023.json exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/static/d/2417117884.json exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/static/network-icon-f659855f70bb0e12addd96250807c241.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/styles.e93b5499b63484750fba.css exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/config/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/developers/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/disputes/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/orgs/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/registry/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/removal/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/scope/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/scripts/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/public/using-npm/semver/index.html exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/Accordion.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/Button.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/DocLinks.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/FoundTypo.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/MobileSidebar.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/Sidebar.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/DarkBlock.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/FeatureCard.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/Features.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/Footer.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/Terminal.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/Windows.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/cubes.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/home/hero.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/layout.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/links.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/navbar.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/scripts.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/components/seo.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/background-boxes.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/background-cubes.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/background-rectangles.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/bracket.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/cli-logo.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/down-carrot.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/hamburger-close.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/hamburger.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/manager-icon.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/network-icon.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/npm-icon.png exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/orange-cube.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/pink-gradient-cube.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/purple-cube.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/purple-gradient-cube.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/red-cube.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/right-shadow-box.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/terminal-icon.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/test-icon.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/up-carrot.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/images/x.svg exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/main.css exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/pages/404.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/pages/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/templates/Page.js exists in filesystem
npm: /usr/lib/node_modules/npm/docs/src/theme.js exists in filesystem
npm: /usr/lib/node_modules/npm/lib/fund.js exists in filesystem
npm: /usr/lib/node_modules/npm/lib/install/fund.js exists in filesystem
npm: /usr/lib/node_modules/npm/lib/utils/funding.js exists in filesystem
npm: /usr/lib/node_modules/npm/man/man1/npm-fund.1 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/folders.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/install.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/package-json.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/package-lock-json.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/package-locks.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man5/shrinkwrap-json.5 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/config.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/developers.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/disputes.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/orgs.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/registry.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/removal.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/scope.7 exists in filesystem
npm: /usr/lib/node_modules/npm/man/man7/scripts.7 exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/gentle-fs/lib/bin-link.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/https-proxy-agent/.editorconfig exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/https-proxy-agent/.eslintrc.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/.github/settings.yml exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/.npmignore exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/LICENSE exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/README.md exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/index.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/package-lock.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/package.json exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/test/array.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/test/nobin.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/test/object.js exists in filesystem
npm: /usr/lib/node_modules/npm/node_modules/npm-normalize-package-bin/test/string.js exists in filesystem
npm: /usr/lib/node_modules/npm/scripts/docs-build.js exists in filesystem
npm: /usr/share/man/man1/npm-fund.1 exists in filesystem
npm: /usr/share/man/man5/folders.5 exists in filesystem
npm: /usr/share/man/man5/install.5 exists in filesystem
npm: /usr/share/man/man5/package-json.5 exists in filesystem
npm: /usr/share/man/man5/package-lock-json.5 exists in filesystem
npm: /usr/share/man/man5/package-locks.5 exists in filesystem
npm: /usr/share/man/man5/shrinkwrap-json.5 exists in filesystem
npm: /usr/share/man/man7/config.7 exists in filesystem
npm: /usr/share/man/man7/developers.7 exists in filesystem
npm: /usr/share/man/man7/disputes.7 exists in filesystem
npm: /usr/share/man/man7/orgs.7 exists in filesystem
npm: /usr/share/man/man7/registry.7 exists in filesystem
npm: /usr/share/man/man7/removal.7 exists in filesystem
npm: /usr/share/man/man7/scope.7 exists in filesystem
npm: /usr/share/man/man7/scripts.7 exists in filesystem
Errors occurred, no packages were upgraded.

我还能做啥?我甚至运行了"sudo pacman -Rs npm“,并试图重新安装,但什么也没做。

用命令求解编辑的

代码语言:javascript
复制
$ sudo pacman -Rns npm
$ sudo rm -R /usr/lib/node_modules/npm/
$ sudo rm -R /usr/share/man/man1/
$ sudo pacman -Syyu
$ sudo pacman -S npm

跑完,跑:

代码语言:javascript
复制
$ sudo pacman -Syyu
$ sudo pacman -S npm

现在我做了这个,得到了一个干净的系统更新!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-12 01:13:09

谢谢你问这个问题,并用正确的答案更新它!我只是想添加一个小的变化,因为有一个评论引用它。

您忘记添加-R标志,它递归地删除目录中的所有内容。

代码语言:javascript
复制
$ sudo pacman -Rns npm
$ sudo rm -R /usr/lib/node_modules/npm/
$ sudo rm -R /usr/share/man/man1/
$ sudo pacman -Syyu
$ sudo pacman -S npm

跑完,跑:

代码语言:javascript
复制
$ sudo pacman -Syyu
$ sudo pacman -S npm

希望这能帮助另一个像我这样的过路人:)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59788555

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档