AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[javascript](ubuntu)

Martin Hope
Simon
Asked: 2020-12-07 22:13:00 +0800 CST

Nemo-preview 抛出 JS 错误

  • 3

我的系统是 Ubuntu 20.04,我nemo-preview从存储库下载Linux Mint并手动安装。安装中没有错误或警告显示。但是nemo-preview当我打开时不起作用nemo。

我nemo-preview在命令行中运行,它显示以下信息然后退出。

(nemo-preview-start:20719): Cjs-WARNING **: 14:03:55.707: JS ERROR: Error: Requiring NemoPreview, version none: Typelib file for namespace 'GtkSource', version '3.0' not found
@/usr/share/nemo-preview/js/ui/fallbackRenderer.js:31:7
@/usr/share/nemo-preview/js/ui/mimeHandler.js:28:7
@/usr/share/nemo-preview/js/viewers/image.js:38:7

Segmentation fault (core dumped)

里面的内容/usr/share/nemo-preview/js/ui/fallbackRenderer.js:31:7是

const NemoPreview = imports.gi.NemoPreview;

有谁知道如何解决这个问题?

nemo javascript
  • 1 个回答
  • 134 Views
Martin Hope
R S
Asked: 2020-12-07 11:31:24 +0800 CST

在 Ubuntu 上运行 Javascript 代码的最简单方法是什么?

  • 1

我尝试使用浏览器的控制台,但它解释print为打印文档的命令,而不是控制台上的输出。我听说过一些 JavaScript Shell,但不知道如何安装和使用它。我只需要运行简单的控制台 Javascript 程序。

programming javascript
  • 1 个回答
  • 1225 Views
Martin Hope
Kratos_GoS
Asked: 2020-04-02 11:11:32 +0800 CST

在 Ubuntu 上安装 Jmemorize(闪存卡)

  • 1

我想在 ubuntu 上安装从 sourceforge(下面的链接)下载的 jmemorize(闪存卡应用程序)。开发人员没有费心解释可能很简单,但我被困在其中并且没有任何线索。

https://sourceforge.net/projects/jmemorize/

对于这个问题的所有未来读者:冠状病毒这些天已经占领了世界。

java javascript
  • 1 个回答
  • 111 Views
Martin Hope
Ole
Asked: 2020-02-25 17:44:42 +0800 CST

如何安装 SSL 证书以便为本地 Web 应用程序提供服务?

  • 0

我需要安装本地 SSL 证书,以便浏览器信任它。教程Running Angular CLI over HTTPS with a Trusted Certificate包含针对 OS X 和 Windows 的说明,但不包含 Ubuntu。

例如,这些是 OS X 的说明:

  1. 双击证书 ( server.crt)
  2. 选择您想要的钥匙串(login应该足够了)
  3. 添加证书
  4. 如果尚未打开钥匙串访问,请打开它
  5. 选择您之前选择的钥匙串
  6. 你应该看到证书localhost
  7. 双击证书
  8. 扩大信任
  9. 在“使用此证书时”中选择始终信任选项
  10. 关闭证书窗口

证书现已安装。

Ubuntu 的等价物是什么?

browser ssl https certificates javascript
  • 1 个回答
  • 1178 Views
Martin Hope
Lmao 123
Asked: 2020-02-14 10:47:29 +0800 CST

Ubuntu 16.04 上的 Puppeteer 不起作用

  • 2

是否可以在 Ubuntu Server 16.04 上运行Puppeteer ?我得到这个错误。

(node:23213) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/root/bin/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/root/bin/node_modules/puppeteer/lib/Launcher.js:750:14)
    at Interface.<anonymous> (/root/bin/node_modules/puppeteer/lib/Launcher.js:739:50)
    at Interface.emit (events.js:333:22)
    at Interface.close (readline.js:414:8)
    at Socket.onend (readline.js:192:10)
    at Socket.emit (events.js:333:22)
    at endReadableNT (_stream_readable.js:1201:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:23213) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:23213) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

如何解决此故障并让应用程序运行?

server command-line 16.04 maas javascript
  • 2 个回答
  • 5786 Views
Martin Hope
Haider Yaqoob
Asked: 2019-11-17 00:12:46 +0800 CST

节点模块的位置是什么

  • 5

我想查看我所有的 node-module 包和模块。请告诉我它在 ubuntu 18.04 中的位置。比如/path/to/node-module。此外,如何查看http模块或fs模块等模块的代码。

nodejs javascript
  • 3 个回答
  • 24957 Views
Martin Hope
Nicnajder
Asked: 2019-08-23 04:46:03 +0800 CST

Caprine(信使客户端)无法启动

  • 3

我习惯在 Ubuntu 上使用 Caprine 作为我的信使客户端。然而,在使用 Ubuntu 18.04 几个月后,它根本无法开始给出这个异常:

nicnajder@nicnajder:~$ caprine
A JavaScript error occurred in the main process
Uncaught Exception:
Error: EPERM: operation not permitted, chown '/home/nicnajder/snap/caprine/28/.config/Caprine/config.json.2832388994'
    at Object.chownSync (fs.js:1104:3)
    at Function.writeFileSync [as sync] (/snap/caprine/28/resources/app.asar/node_modules/conf/node_modules/write-file-atomic/index.js:196:27)
    at ElectronStore.set store [as store] (/snap/caprine/28/resources/app.asar/node_modules/conf/index.js:277:19)
    at ElectronStore.set (/snap/caprine/28/resources/app.asar/node_modules/conf/index.js:152:14)
    at updateVibrancySetting (/snap/caprine/28/resources/app.asar/dist-js/config.js:155:15)
    at migrate (/snap/caprine/28/resources/app.asar/dist-js/config.js:165:5)
    at Object.<anonymous> (/snap/caprine/28/resources/app.asar/dist-js/config.js:168:1)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32)

我尝试重新安装 Caprine,但没有解决问题。有什么想法该怎么做?

编辑:

nicnajder@nicnajder:~$ ls -ld /home/nicnajder/snap{,/caprine{,/28{,/.config{,/Caprine{,/config.json.2832388994}}}}}
ls: cannot access '/home/nicnajder/snap/caprine/28/.config/Caprine/config.json.2832388994': No such file or directory
drwxr-xr-x 5 nicnajder nicnajder 4096 jún 28 12:54 /home/nicnajder/snap
drwxr-xr-x 4 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine
drwxr-xr-x 4 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine/28
drwxr-xr-x 8 nicnajder nicnajder 4096 aug 22 14:39 /home/nicnajder/snap/caprine/28/.config
drwxr-xr-x 2 nicnajder nicnajder 4096 aug 23 12:33 /home/nicnajder/snap/caprine/28/.config/Caprine

javascript
  • 1 个回答
  • 675 Views
Martin Hope
Kawil
Asked: 2019-05-14 23:54:26 +0800 CST

将返回值从 firefox 进程传递给 linux shell?

  • 2

我想问一下,如何将任何值从 Firefox 进程传递到 Linux shell?我的情况是,我想创建一个 Linux 脚本工具来使用 Firefox 调用网页,

在 Firefox 中的任何进程完成后,Javascript 将自动关闭 Firefox,我需要从 Firefox 进程的完成中获取一些价值。可以使用Javascript吗?

这是我的示例代码

#!/bin/bash
firefox xxx.xxx.xxx.xxx/assembly/

echo $?

我想将任何值从 Firefox 进程传递给这个var $?

scripts firefox bash javascript
  • 1 个回答
  • 128 Views
Martin Hope
Karthick Selvakumar
Asked: 2019-01-09 06:12:28 +0800 CST

如何在ubuntu18.04上安装和使用angularjs?

  • 0

谁能分享我如何使用angularjs最新版本。我想在 angularjs 上做项目。

server project-management javascript
  • 1 个回答
  • 311 Views
Martin Hope
Rafael Muynarsk
Asked: 2018-06-08 15:44:29 +0800 CST

为什么我在尝试访问我的某些 GNOME shell 扩展设置时收到错误消息?

  • 13

我的一些 GNOME shell 扩展不允许我配置它们的功能,因为当我尝试打开它们时收到一条错误消息。下图是我尝试打开“ Web Search Dialog ”扩展的配置时看到的:

在此处输入图像描述

白框中的消息是这样的:

Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found

Stack trace:
  @/home/ramuyko/.local/share/gnome-shell/extensions/web_search_dialog@awamper.gmail.com/utils.js:17:7
  @/home/ramuyko/.local/share/gnome-shell/extensions/web_search_dialog@awamper.gmail.com/prefs.js:26:7
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

我认为这个错误不是“Web Search Dialog”扩展的孤立问题,因为我在其他扩展中也收到了同样的错误(比如“ HowDoI ”扩展的配置)。有谁知道为什么会发生这种情况以及是否有解决此问题的简单解决方法?


PS1:我正在使用带有 GNOME Shell 3.28.1 的 Ubuntu 18.04。

PS2:虽然我无法配置它的功能,但出现这种错误的GNOME shell 扩展工作正常。唯一的问题是访问他们的配置。

error-handling gnome-shell-extension clutter 18.04 javascript
  • 1 个回答
  • 5636 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve