Questions tagged [javascript]

JavaScript is a prototype-based scripting language

Filter by
Sorted by
Tagged with
-2
votes
0answers
29 views

Why the console shows an error in the bundle.js file?

After calling the browserify check.js -o bundle.js command, in the file bundle.js has been written code similar to check.js . There is some information about the Error TypeError
0
votes
0answers
8 views

How to use npm file-storage package?

I learn Javascript and don't even know, how exactly use FileStorage object. var storage = new FileStorage(...); // supply valid credentials The package link: https://www.npmjs.com/package/file-...
0
votes
1answer
10 views

Terminal not outputting result in Visual Studio Code

Image I'm fairly new to programming and I'm learning Node.js. When testing my installation of node.js and VS code, I just wanted to run a console.log('Hello');, but the terminal is not outputting ...
0
votes
0answers
22 views

I created extension for Lubuntu 20.04 Can someone tell me is it supported or not because I'm using windows [closed]

here is all my JavaScript used is there any problem will prevent it from working on Lubuntu 20.4 because it works fine on windows all browsers // When the button is clicked, inject ...
0
votes
0answers
15 views

Trouble with Java in Ubuntu 20.04 vs 18.04 - Compiling JS code with the Google Closure Library

I have a JavaScript project made with the Google Closure library. It uses Java 8 to compile all the JavaScript into one single JS file. It works flawlessly on Ubuntu 18.04 and compiles as expected. ...
0
votes
0answers
24 views

Installing Ganache GUI in Ubuntu

How exactly is Ganache installed on Ubuntu? The approach of using git looks advantageous, yet, I'd expect a sort of wrapper around git for use from within npm or similar. Or does this have to be ...
0
votes
0answers
34 views

REACTJS local server freezes my Ubuntu

Whenever my reactjs app is starting, my Ubuntu os freezes and I use Firefox not chrome because of memory management. What could be the cause? Thanks in advance.
0
votes
0answers
27 views

Access a browser's console from the command line

I've see this: Browsing the internet from the command line But I'm wondering if there is a way of accessing a browser's console from the command line? E.g where typing JSON.stringify(...
0
votes
0answers
100 views

Escape HTML in bash ( Ubuntu server )

I have already html file ( Form ) that contains HTML Tags , css , Javascript and some of XOR cipher I used a website to escape HTML then I write in bash file: header= ' The HTML code after the ...
1
vote
2answers
261 views

Where are gnome-shell's UI javascript files on Ubuntu 20.04?

I have found the source code of gnome-shell UI js files on the Debian website: https://sources.debian.org/src/gnome-shell/3.38.2-1/js/ui/ Then I have also found this answer here, which points out that ...
0
votes
1answer
784 views

What is the problem with node_modules (or npm) PPA on Ubuntu

I started to use Ubuntu last year and since today I face really annoying problems. Firstly the problems were Reactjs with script errors which I couldn't even start a project, anyway I solved in ...
0
votes
0answers
6k views

“SyntaxError: Cannot use import statement outside a module”: occurs on Ubuntu, but not on Windows

I work with this assembly: https://github.com/andreyalexeich/gulp-scss-starter It works for me on Windows. But on Ubuntu, right after the run command (gulp, or npm run dev, or yarn run dev) does not ...
3
votes
1answer
77 views

Nemo-preview throws out JS error

My system is Ubuntu 20.04, I download nemo-preview from the repository of Linux Mint and installed it manually. No error or warning shows in the installation. But nemo-preview does not function when I ...
1
vote
1answer
76 views

What is the simplest way to run Javascript code on Ubuntu?

I tried to use browsers' console, but it interprets print as command to print a document, not as output on the console. I heard about some JavaScript Shell, but didn't quiet get how to install and use ...
0
votes
0answers
16 views

How to use react and redux with rails --api and auth

I have just a general question about how I should go about where I might find some information on using react and redux with rails --API backend. I understand the basics of all of these but, I'm ...
1
vote
0answers
171 views

Internet Explorer 8 on Wine Ubuntu 18.04

I recently installed IE8 on my Ubuntu 18.04 laptop using Wine and Winetricks. The installation has completed successfully but the .exe file located in /home/woop/.wine/drive_c/Program Files/Internet ...
-1
votes
1answer
2k views

I am always getting the error “address already in use :::3000”

Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (net.js:1280:14) at listenInCluster (net.js:1328:12) at Server.listen (net.js:1415:7)
0
votes
1answer
2k views

Selenium chromedriver doesn't load javascript in webpage

I'm running python code in a VPS with Ubuntu 18. After much trying, I was able to run the selenium Chromedriver there headfully. Now, I'm finding that the webpages sometimes loads fully, but more ...
0
votes
0answers
62 views

How to enable geolocation for a web app in Ubuntu?

I'm trying to develop a web application that requires the use of the Google API for maps and geolocation, but I haven't find the way to obtain my location on Ubuntu 20.04. I try some web pages in my ...
1
vote
1answer
204 views

Is there a way to use setTimeout in Gnome Shell Extension code?

I am trying to code a gnome-shell extension. It uses Javascript. But one major problem when I want to use setTimeout() it tells me this in the log: ReferenceError: setTimeout is not defined, what I am ...
1
vote
0answers
102 views

“”gjs-console“ closed unexpectedly” error message

Mine is Ubuntu 18.4. I get the following error message frequently. "Sorry the program "gjs-console" closed unexpectedly your computer doesn't have enough memory" Sometimes the ...
0
votes
1answer
679 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
68 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 ...
0
votes
1answer
439 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
4k 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
220 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 ...
1
vote
0answers
291 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 ...
2
votes
2answers
9k 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 ...
3
votes
1answer
438 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
532 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
79 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
4k 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
144 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 ...
4
votes
1answer
656 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
1k 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
1answer
288 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
102 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
73 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
3k 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
5k 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
254 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
1k views

ng serving problem on Ubuntu 16.04

I've already installed AngularCLI with npm and then I tried serving ng serve --open in the terminal. But the terminal showed an empty screen and then nothing happened. What can I do to serve my ...
4
votes
4answers
7k 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 ...
2
votes
0answers
1k 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
171 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
953 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
173 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
334 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, ...