Questions tagged [javascript]

JavaScript is a prototype-based scripting language

Filter by
Sorted by
Tagged with
0 votes
0 answers
177 views

need help solving weird build failure using a Ubuntu machine

My best guess is that something is corrupted on the machine, but I have yet to figure out what. The machine is running Ubuntu 22.04. The issue is trivial to reproduce: yarn create vite my-vue-app --...
Eric G's user avatar
  • 101
0 votes
0 answers
12 views

I can't deploy node js app to Ubuntu server

I had developed WebRTC real-time video conferencing app (N:1, N:N) and currently I am trying to deploy it to server. But I can't set up Nginx successfully. I used PM2 and I can't remove port number in ...
angel sky's user avatar
0 votes
1 answer
859 views

Java version Error

I try to install a software which is giving following error: No suitable Java Virtual Machine could be found on your system. The version of the JVM must be at least 17.0.2 and at most 17. Please ...
adeha's user avatar
  • 1
0 votes
1 answer
165 views

Unexpected high resources consumption from gnome-javascript

I'm running Ubuntu Lunar 23.04. I've acceptable computing resources but for some reason the GNOME desktop environment keeps freezing for a moment then it returns back to normal without crashing, ...
Razi Falah's user avatar
-2 votes
1 answer
69 views

On ubuntu while using JavaScript, what command should I enter to delete my files having a common name in them? You can also use wildcards to help me

For example, I have four files with the names as "one-beta.txt" , "one-alpha.txt" , "two-beta.txt" , "three-gamma.txt". Now I am supposed to delete my files ...
Mamoona's user avatar
1 vote
1 answer
372 views

node/nvm/npm installations : sudo vs. user install leads to trouble?

The problem appears to be inconsistency with root and user installed node (v.19.7.0), nvm (0.39.3), and npm (v. 9.5.0) and a specific npm-installed package called svg-path-interpolator on an Ubuntu 22....
Bryan-StackExchange's user avatar
2 votes
1 answer
2k views

insomnia on ubuntu Gtk-WARNING **: 18:49:38.190: Theme parsing error: gtk.css:1413:23: 'font-feature-settings' is not a valid property name

I have this problem when I try to open insomnia on ubuntu and I don't want to delete it so I don't lose my work has anyone had this problem? A JavaScript error occurred in the main process Uncaught ...
Leonardo Melo's user avatar
1 vote
3 answers
4k views

System tray icons all disappeared

I'm running Ubuntu 20.04.5. Recently all of my system tray application icons (e.g. Dropbox, Discord) disappeared, and restarting did not help. When I run Dropbox or Discord from terminal, their ...
rayna's user avatar
  • 113
0 votes
1 answer
2k views

Websocket sending blob object on live server and string on local server

I am new to Ubuntu and recently created a project with WebSocket. Everything works as expected on local server but on live server I get following error: Uncaught SyntaxError: Unexpected token 'o', &...
Dev Chauhan's user avatar
0 votes
1 answer
416 views

browsers do not fetch any javascript file in a specific domain

I am running ubuntu 20.04 I have problem while opening beisat.org When I view page source there is no <script> tag and no js file is loaded. But I can load other websites correctly. Also I have ...
Ali Samie's user avatar
  • 107
0 votes
0 answers
564 views

"grunt run" doesnt work in sudo mode(Ubuntu 20.04.2)

~/Desktop/editify$ sudo -s root@kritidipto-HP-Laptop-15-bs0xx:/home/kritidipto/Desktop/editify# grunt run node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'liftoff' ...
Kritidipto Ghosh's user avatar
2 votes
1 answer
7k views

Cannot use JavaScript inside PDF with Firefox

I am having troubles using JavaScript in a PDF file opened with Firefox. To sum up, it is a file that uses XFA forms and JavaScript to validate the form and generate a QrCode. Here is the link to the ...
wil123's user avatar
  • 21
2 votes
3 answers
5k views

Where is the JSON Config File for Discord Installed Via Snap?

The only .json files I can find are build_info and manifest (I don't think either of them are config files). Forgive me if my question is too amateurish, I just installed Ubuntu recently. I'm trying ...
Anon Anon's user avatar
0 votes
0 answers
307 views

Firefox snap version in 21.10 CORS problem

After upgrading to 21.10, I run into a CORS problem with an HTML page that uses Javascript fetch() to GET a page from a server. Same page does not have problems with Chromium under 21.10 (or Firefox ...
M_breeb's user avatar
  • 109
0 votes
1 answer
585 views

Ubuntu server running a proxied Node/JS web app with Apache2 gets weird connection failure

Like this, I am running an Express JS app trough Apache (note retry=0 is important): ... ProxyRequests Off ProxyPreserveHost On ProxyVia Full <Proxy *> Require all granted &...
Tore Ericsson's user avatar
0 votes
1 answer
1k views

After Update to 21.04 Apache Not Fully Installed and JavaScript Not Working

Apache is running and is serving pages but it seems to have been only partially updated during the upgrade and prevents further updates. sudo apt upgrade Reading package lists... Done Building ...
DonP's user avatar
  • 386
0 votes
0 answers
74 views

Is there any trick to collecting data from a web page that using JavaScript and setting current time and date automatically?

I work under Ubuntu Linux in the terminal, using shell script wget, httrack and: google-chrome --headless --dump-dom 'https://www.pref.kanagawa.jp/sys/taikikanshi/kanshi/realtime/index.html' > ~/...
roobal's user avatar
  • 1
0 votes
0 answers
211 views

Monitoring battery percentage using Gjs

I was looking to this answer to get an idea of how to get the value of the battery percentage. I modified the example using this documentation to the following code: const Gio = imports.gi.Gio; const ...
Tom's user avatar
  • 11
0 votes
0 answers
417 views

Accesing UPower battery percentage via DBus in gjs: Access Denied

I am trying to make an extension that displays a notification when the battery level reaches certain value. To get the percentage level I am trying to implement this method, but as I don't have a ...
Tom's user avatar
  • 11
2 votes
1 answer
63 views

Which package do I have to install to get `gjslint` in Ubuntu 21.04?

I've been using gjslint to verify that my JavaScript code is valid before sending it to my servers. Very practical. In older versions (16.04, 18.04), it was found in the closure-linter package. In ...
Alexis Wilke's user avatar
  • 2,707
0 votes
1 answer
34 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-...
Svitlana Kuievda's user avatar
0 votes
1 answer
2k views

Terminal not outputting result in Visual Studio Code

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 anything ...
Nitsuj12's user avatar
0 votes
1 answer
1k 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 ...
Nicholas Saunders's user avatar
1 vote
1 answer
504 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.
Clement Olaniyan's user avatar
0 votes
0 answers
310 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 ...
Abdalaziz Alharthi's user avatar
9 votes
2 answers
3k 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 ...
Levente's user avatar
  • 3,953
0 votes
1 answer
5k 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 ...
ramilabbaszade's user avatar
2 votes
0 answers
8k 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 ...
Kniga's user avatar
  • 121
3 votes
1 answer
189 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 ...
Simon's user avatar
  • 419
2 votes
1 answer
6k 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 ...
R S's user avatar
  • 2,369
1 vote
0 answers
2k 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 ...
Woop's user avatar
  • 31
0 votes
2 answers
5k 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)
Nikhil Sharma's user avatar
0 votes
0 answers
6k 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 ...
puppet's user avatar
  • 101
1 vote
1 answer
841 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 ...
fsevenm's user avatar
  • 743
2 votes
0 answers
2k 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 ...
Ahmed Abdullah's user avatar
0 votes
1 answer
2k 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 ...
Spencer's user avatar
1 vote
1 answer
163 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 ...
Kratos_GoS's user avatar
0 votes
1 answer
3k 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. ...
Ole's user avatar
  • 1,477
2 votes
2 answers
7k 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/...
Lmao 123's user avatar
1 vote
0 answers
513 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 ...
Yatin Pandit's user avatar
1 vote
0 answers
535 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 ...
DumTux's user avatar
  • 121
6 votes
3 answers
37k 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 ...
Haider Yaqoob's user avatar
3 votes
1 answer
860 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 ...
Nicnajder's user avatar
3 votes
1 answer
1k 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
Tamoghna Maitra's user avatar
2 votes
1 answer
183 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,...
Kawil's user avatar
  • 55
4 votes
1 answer
8k 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 ...
Lonnie Best's user avatar
  • 2,194
1 vote
0 answers
259 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 ...
beredentod's user avatar
4 votes
1 answer
1k 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 ...
newtothis's user avatar
  • 101
0 votes
1 answer
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 ...
Fuad Fouad's user avatar
0 votes
1 answer
316 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.
Karthick Selvakumar's user avatar