gpt4 book ai didi

npm - 已安装 Nodejs 但未安装 NPM

转载 作者:行者123 更新时间:2023-12-04 03:14:00 26 4
gpt4 key购买 nike

我已经在 ubuntu 15.10 上安装了 nodejs :

sudo apt-get install nodejs

npm 应该随 nodejs 一起提供,但是当我执行 npm -v 时,它说它没有安装。所以我尝试安装它:

sudo apt-get install npm

但我得到:

The following packages have unmet dependencies: npm : Depends: nodejs but it is not going to be installed
Depends: nodejs-dev
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-graceful-fs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-which but it is not going to be installed E: Unable to correct problems, you have held broken packages.

如果有人知道如何解决这个问题,...

谢谢

最佳答案

你能试试吗

sudo apt-get install --reinstall nodejs

并在重新安装后发布任何错误和/或 nodejs 版本。

关于npm - 已安装 Nodejs 但未安装 NPM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35921248/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com