Questions tagged [javascript]

JavaScript is a prototype-based scripting language

Filter by
Sorted by
Tagged with
-1
votes
0answers
17 views

Jest, Enzyme, mount/shallow | TypeError: wrapper.instance(…).functionName is not a function [closed]

So I'm making this test: it('render 5 houses per page from HouseList-component correctly', async () => { const wrapper = mount(<BrowserRouter><HouseList instantiateMock={true}/><...
-3
votes
0answers
14 views

replace checkout section with iframe [closed]

i am trying to remove a section of my bigcommerce checkout page and replace with an iframe... i am using this script to try and embed the iframe: <script> function replaceFormBodyWithIframe () ...
0
votes
1answer
28 views

Using environment variables with Node.js

I am trying to prepare my app for production on a ubuntu running nginx. I have been using the dotenv npm package during development, but need a more stable and secure method for production. I have ...
1
vote
1answer
28 views

Installing Jmemorize (flashcard) on Ubuntu

I want to install jmemorize (flashcard app) that I downloaded from sourceforge (link below) on ubuntu. It might be very simple that the developer didn't bother himself to explain but I'm stuck in it ...
1
vote
0answers
77 views

The Browser can't execute my JS file [closed]

Why is my Hello.js file executed as text in the browser?
0
votes
1answer
92 views

How do I install an SSL certificate in order to serve a local web application?

I need to install a local SSL certificate so that the browser trusts it. The tutorial Running Angular CLI over HTTPS with a Trusted Certificate has instructions for OS X and Windows, but not Ubuntu. ...
2
votes
2answers
959 views

Puppeteer on Ubuntu 16.04 doesn't work

Is it possible to run Puppeteer on Ubuntu Server 16.04? I get this error. (node:23213) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! /root/bin/node_modules/puppeteer/...
1
vote
0answers
35 views

RTSP to HTT using VLC command line

I have a camera which gives output in form of RTSP. However we want to run it on a browser inside HTML tag. For which we need HTTP url using terminal. I saw few posts which uses cvlc but I was not ...
0
votes
0answers
117 views

Cannot run UglifyJS on Ubuntu 18.04

I installed UglifyJS on Ubuntu 18.04 using: sudo apt install node-uglify And then I tried to run uglifyjs command, but got error messages: $ uglifyjs -h internal/modules/cjs/loader.js:638 throw ...
0
votes
0answers
55 views

Can't Use the Web Midi API on Ubuntu

With aspirations of creating a web based Midi tool, in Ubuntu 19.10, I'm trying to test out the Web Midi API. Although it is supposed to be supported in Chromium, none of the samples I've tried work ...
1
vote
1answer
2k views

what is the location of node-modules

I want to see my all packages and modules of node-module. Please tell me its the location in ubuntu 18.04. such as /path/to/node-module. Moreover, How to see the code of modules such as http module or ...
0
votes
0answers
30 views

Cannot connect to MsSQL Enable TCP connections

I'm trying to enable TCP connections. I'm making an app and I'm using mssql with node. The message I'm getting is: ConnectionError: Failed to connect to hostname:1433 - getaddrinfo ENOTFOUND ...
3
votes
1answer
291 views

Caprine (messenger client) fails to start

I am used to use Caprine as my messenger client on Ubuntu. However, after few months of using in with Ubuntu 18.04 it simply fails to start giving this exception: nicnajder@nicnajder:~$ caprine A ...
2
votes
1answer
301 views

Interfacing DBus using gjs

I am extremely new to gjs and I want to interface dbus. I want to create a service and listen to it. A small example or guide would be useful. Thank You
2
votes
1answer
71 views

pass return value from firefox process to linux shell?

I want to ask about, how to pass any value from Firefox process to Linux shell? my case is, I want to create a Linux script tool to calling webpage using Firefox, after any process in Firefox is done,...
1
vote
1answer
2k views

Modifying Large JSON Files in Linux

I have a need to modify large JSON files that choke most editors (meaning: most editors will take a long time to open the file, and even after the file is loaded, the editor will become unresponsive ...
1
vote
0answers
54 views

How do I send a .js command from the terminal to a website?

I'd like to access these things from terminal: Open a page in Chromium Execute a JavaScript command (like these in the console, when you click on "Inspect element") Kill the page. How do I send the ...
2
votes
0answers
399 views

gnome freezes with high CPU use of gnome-shell (JS ERROR)

Every now and then my gnome session freezes completely with gnome-shell using 100% CPU. The only thing I could do so far was to switch to a virtual terminal and kill gnome-shell. After that the gnome ...
0
votes
1answer
712 views

npm is not updating my node.js correctly

I have a js code that I want to run on a remote Ubuntu 16.04. And node -v is not showing the same results like nodejs -v. Well this happened after using npm update(the script I need to use asked for ...
0
votes
0answers
115 views

Problems Accessing MalwareBytes Website - On Console i get this!

When i try to acces the website i got this, i believe is js related but i was unable to solve tryed to install os-service and a lot of other things... Ubuntu 18.10. tryed to install XMLHttpRequest ...
0
votes
1answer
242 views

How to install and use angularjs on ubuntu18.04?

Can anyone share me how can I use angularjs latest version. I want to do project on angularjs.
1
vote
1answer
78 views

Unable to upload .amr files in Ubuntu?

I'm trying to upload media files to a website I'm maintaining. The latest one to be added is .amr (test file from here) and it's causing problems, but only with Ubuntu. It works fine on Mac OS (High ...
1
vote
0answers
71 views

I am getting an error when I am checking npm version

I am getting an error when I hit npm -v. Actually this happent after I tried a command to update my npm version from 3.5.2 to version 4 or higher. The command I used: sudo ln -sf ~/.nvm/versions/node/...
0
votes
1answer
2k views

Node.js “UserLogged” function returning “undefined”. Why? [closed]

When I get to the end of the code below, it always returns "undefined" and I don't know why! function UserLogged (session) { if (session === null) { var err = new Error('Not logged in'); ...
13
votes
1answer
4k views

Why do I receive an error message while trying to access some of my GNOME shell extension settings?

Some of my GNOME shell extensions don't let me configure their features because I receive an error message when I try to open them. The following image is what I see when I try to open the ...
1
vote
1answer
154 views

pdf viewer withour javascript enabled

I'm searching for a good, simple PDF viewer without javascript support. This link says that Evince does not have javascript support but may in future. I want a PDF viewer that has no javascript ...
0
votes
1answer
812 views

ng serving problem on Ubuntu 16.04

I've already installed AngularCLI with npm and then I try serving ng serve --open in the terminal. But the terminal shows an empty screen and then does nothing. What can I do to serve my Angular app? ...
3
votes
4answers
3k views

Messenger - JavaScript error in the main process

I have installed the Messenger for Desktop app on my 16.04. Everytime I launch the application I get this javascript error seing on screenshot below However when I click OK the the app launches ...
1
vote
0answers
808 views

Minimal X web browser with JavaScript support

I need to use a browser via ssh -X (that is, X rendering is allowed via ssh), but the browser should be as lightweight as possible, since the connection is not very fast then I need to minimize the ...
3
votes
0answers
1k views

How can I get yarn to use the right version of Node?

I am new to Node, JavaScript etc. and want to try messing with the code of Signal. For this I need a specific version of Node. I did this (on Ubuntu 16.04) using the following procedure: wget https://...
0
votes
0answers
168 views

Temporary way to mitigate Meltdown before official fix? [duplicate]

As I understand it this vulnerability is about browser behavior, would turning off javascript be a temporary mitigation against attack?
2
votes
1answer
630 views

How to compare V8 Javascript Engine version between Chrome and NodeJS in terminal?

Every time that a feature of ECMAscript specification is implemented (see link below) in V8 Javascript Engine from Google Chrome browser we are never know when will be available on NodeJS Server. I ...
1
vote
0answers
122 views

Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format

When I try fetch v8 or gclient sync I get this error: Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/...
0
votes
1answer
1k views

A JavaScript error occured in the main process while trying to run GeoGebra 6 Portable

I recently downloaded this version of GeoGebra and, after I extract the components of the zip file, everytime I try to launch it through terminal using ./GeoGebra it gives me the following error: A ...
0
votes
1answer
300 views

Get linux 'screen' to recognize xterm mouse-click cols > 95

I have a Web-based terminal using xterm.js and ssh2 from node.js. When I click, xterm.js sends mouse-click coords via xterm escape sequences. This works fine. When using the 'screen' cli utility, ...
0
votes
0answers
42 views

Website inaccessible from Ubuntu command prompt but is accessible from browser

When I visit a website from the browser it exists, but when I check with the Ubuntu command line it pings but nothing else works. Nmap does nothing. Curl does nothing. The only vaguely interesting ...
5
votes
1answer
2k views

How to load Greasemonkey scripts directly from a Github gist or repo?

Instead having 3 versions of my browser's userscripts: local-draft local-Greasemonkey Github I want to have only 1 script instance in Github. I need a way to import the content of the script, which ...
0
votes
2answers
401 views

Certain websites fail to load in Chrome

I'm using Ubuntu 14.04. I'm not able to post questions on Ask Ubuntu in Chrome, apparently because of a dependency on JavaScript from another domain. I know this isn't an issue with the website. It ...
2
votes
3answers
28k views

How to install AngularJS on Ubuntu

Can someone help me with a step by step guide to install AngularJS on Ubuntu.
0
votes
1answer
2k views

Install older version of firefox for SlimerJS

I need some help with installation of firefox older version. Also I have to make it work with SlimerJS npm module. As it says on SlimerJS website it works with versions of firefox from 38.0 to 52.0. ...
2
votes
4answers
46k views

How do I install ReactJS?

I'm trying to install React JS on Ubuntu, but the instructions in the tutorial are only for Windows. How can I continue? I've checked some other tutorials on the internet and I find that no two ...
0
votes
1answer
41 views

at nautilus, javascript file opens with “windows based script host”, what is that?

what that "windows" thing is doing here? how safe is it? when I double click on the js file (expecting gedit), it starts some process that I cannot find with ps... so, what executable is that thing?...
4
votes
1answer
4k views

How to install and configure Mozilla SpiderMonkey js engine in Ubuntu Server 16.04

How to install and configure Mozilla SpiderMonkey js engine in Ubuntu Server 16.04? I want to use SpiderMonkey to run JavaScript code in my web app.
2
votes
0answers
86 views

Is there a way to access filesystem from a HTML5 App in Ubuntu Touch?

I'm trying to adapt a html5 app written originnally for Firefox OS to Ubuntu Touch. There are various issues, like file system access, contacts access, notifications and others. I want to know if ...
1
vote
1answer
1k views

How to beautify JavaScript files recursively?

I have lots of *.js files in subfolders and subsubfolders of my Node.js project which I have written recklessly, and now I'm looking for a tool that can iterate over all the files and beautify them. ...
1
vote
2answers
1k views

Firefox no longer recognizes that Javascript is enabled?

OS— Ubuntu 16.04 (64 bit). Browser— Firefox 50.0.2. When I go to this URL, all I see is an error message that says, "Your web browser must have JavaScript enabled in order for this site to display ...
1
vote
0answers
204 views

Importing non-utf8 calendar file in Thunderbird Lightning

An online calendar file (.ics) that I am trying to import happens to be in the latin1 encoding rather than UTF-8. I added the calendar to Thunderbird's Lightning extension, but none of the events ...
-2
votes
1answer
1k views

Is Ubuntu is good for Java development? [closed]

I am going to develop an eCommerce site using Spring, JDK, Maven, jQuery, JavaScript, servlets, JSP and HTML. Is Ubuntu is good for developing a project like this? If I face any issue related to this ...
1
vote
0answers
531 views

Unique popup window using window.open in an iframe

I have an iFrame with a window open(url,uniqueID,windowparams). The iFrame is located on a single page app and hosted in another server. Everytime I refresh or change the page then return to the ...
0
votes
1answer
2k views

Failed to build app with Apache Cordova on ubuntu 16.04

I have a problem with Apache Cordova to build my application . I'm using Ubuntu 16.04 LTS 32-bit able to investigate the matter fy he found that there are similar issues in this release of Ubuntu , ...