npm install -g karma 不安装可执行文件

2024-01-11

我看起来像是成功安装了 karma,但 karma 不在 /usr/local/bin/ 中,并且 bash 找不到。

知道出了什么问题以及如何解决吗?

以下是最终安装消息:



> [email protected] /cdn-cgi/l/email-protection install /usr/local/lib/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
[email protected] /cdn-cgi/l/email-protection /usr/local/lib/node_modules/karma
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection)
├── log[email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)
├── [email protected] /cdn-cgi/l/email-protection
├── [email protected] /cdn-cgi/l/email-protection ([email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)
└── [email protected] /cdn-cgi/l/email-protection (base64i[email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection, [email protected] /cdn-cgi/l/email-protection)

  

你可以自己链接一下。如:

#Assuming that /usr/local/bin is in your PATH
cd /usr/local/bin
ln -s /usr/local/lib/node_modules/karma/bin/karma

显然,这不是一个理想的解决方案。我认为 karma 的 package.json 存在问题,导致 npm 无法创建可执行文件的链接。可能与this https://www.npmjs.org/doc/json.html#bin.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

npm install -g karma 不安装可执行文件 的相关文章

随机推荐

  • 如何使用 ctypes 将 NumPy 复杂数组与 C 函数连接?

    我在 C 中有一个函数 它接受一组复杂的浮点数并就地对它们进行计算 foo c void foo cmplx float array int length 复杂的浮点结构如下所示 typedef struct cmplx float flo
  • “FragmentStatePagerAdapter(androidx.fragment.app.FragmentManager)”已弃用

    最近的androidx fragment app FragmentManager已被弃用 并且没有合适的解决方案可用 已尝试实施支持 V4 但无法使用AndroidX 它显示未找到库 寻呼机适配器 public ViewPagerAdapt
  • 为什么 cURL 请求在 ZSH 中的每个请求中都返回百分号 (%)?

    我注意到 ZSH 中任何 cURL 请求的返回都以 例如 curl http textbelt com text d number 555555555 d message hey gt success true 为什么要添加这个字符 是否有
  • android获取活动返回null

    我正在活动上使用操作栏 对于每个选项卡 我显示不同的布局 因为布局太重了 所以我将每个布局都扩展到一个视图中 所以在每个选项卡上选择 public void onTabSelected Tab tab FragmentTransaction
  • 为什么这个递归不是无限的?

    我和我的朋友正在做一些基本的 Ruby 练习来感受这门语言 我们遇到了一个我们尚无法理解的有趣行为 基本上 我们正在创建一个tree只有一个类的数据类型 node 其中恰好包含一个值和一个包含零个或多个值的数组nodes 我们正在使用rsp
  • Symfony 2 性能优化

    我们正在寻找一个可以在未来使用的 PHP 框架 目前正在使用 Symfony 2 进行测试 为此 我们重新设计了我们的 API 并将其作为 Symfony 中的捆绑包实现 原来 Symfony 好像是very慢 实际上far比我们旧的 甚至
  • CSS 动画溢出它的父级,尽管溢出:隐藏

    我正在尝试制作一个 材质 动画 其中伪元素在悬停时展开 Demo http codepen io Tiger0915 pen WbxyJB http codepen io Tiger0915 pen WbxyJB On hover a sp
  • Javascript构建树状层次结构

    var array grandpa father father grandpa father me 给定上面的数组 我想生成一个如下所示的 java 脚本对象 JSON 它具有类似父子的结构 id grandpa children id f
  • 应用程序在 Android Studio 中安装时挂起

    通常我构建一个应用程序Android Studio在手机上测试应用程序 但是当我单击Run app Waiting for device Target device motorola nexus 6 ZX1G227B86 Uploading
  • 在 Pari 中绘制多个列表

    我有两个 成对 列表要绘制 我知道 我可以使用plothraw 函数单独绘制每个图 但是我怎样才能将它们绘制在同一张图片中 这样我最终会得到两条不同颜色的曲线呢 作为参考 以下是使用以下方法在两个单独的图中绘制两个数据集的方法plothra
  • 在 Postgres 中使用左外连接删除

    我正在将数据库从 MySQL 切换到 Postgres SQL 在 MySQL 中有效的选择查询在 Postgres 中也有效 但类似的删除查询则不然 我有两个数据表 其中列出了某些备份文件的位置 现有数据 ed 和新数据 nd 此语法将挑
  • PHP日期格式,删除时间等[重复]

    这个问题在这里已经有答案了 可能的重复 在 PHP 中将一种日期格式转换为另一种日期格式 https stackoverflow com questions 2167916 convert one date format into anot
  • mysql_real_escape_string() 完全删除字符串

    我转义了从 php 表单收到的所有字符串参数 如下所示 usr name mysql real escape string REQUEST usr name 以避免 SQL 注入的一些问题 但是当我从函数中返回字符串时 我什么也没有得到 我
  • 如何将集合初始值设定项语法与 ExpandoObject 结合使用?

    我注意到新的ExpandoObject实施IDictionary
  • Django 支持 JOIN 吗?

    Django ORM 是否支持 INNER JOIN LEFT JOIN RIGHT JOIN 和 OUTER JOIN 等连接 我读了文档 没有找到 例如我该怎么做 SELECT FROM auth user groups JOIN te
  • 如何在 Java 中执行 SQL 插入

    我正在尝试将数据插入到具有自动增量主键的表中 我的表结构是这样的 int PK varchar Item ID varchar Item name int FK type 当我尝试准备好的声明时 prep conn prepareState
  • 地图的 Marshmallow Fragment 活动崩溃

    我正在将fragmentActivity 用于地图 在Java 类中 setContentView 出现错误 我的 Mapscreen java 就像 它在某些设备上工作正常 仅在棉花糖上显示崩溃 或者还有其他原因吗 public clas
  • 如何将存储库的拉取请求从一台 Git 服务器迁移到另一台 Git 服务器?

    我正在使用以下命令将存储库从一台 Git 服务器迁移到另一台服务器 我可以移动标签 但无法移动拉取请求 git 克隆 barehttps github forEx myRepositoryUrl https github forEx myR
  • 为什么信号量中的 acquire() 方法不必同步?

    我正在研究 Java 中的信号量并正在阅读这篇文章http docs oracle com javase 1 5 0 docs api java util concurrent Semaphore html http docs oracle
  • npm install -g karma 不安装可执行文件

    我看起来像是成功安装了 karma 但 karma 不在 usr local bin 中 并且 bash 找不到 知道出了什么问题以及如何解决吗 以下是最终安装消息 gt email protected cdn cgi l email pr