Questions tagged [terminal]

A terminal, also known as a command-line interface (CLI), represents a singularly distinctive text-based platform enabling users to engage with an operating system or software application. As opposed to conventional graphical interfaces, CLI operates solely through textual commands inputted by the user. These commands are instrumental in executing specific actions and accomplishing intended objectives effectively.

Unable to execute node in vscode terminal

Can anyone help me figure out why I'm unable to run Node in my vscode terminal? I'm a newbie and currently using POP OS 22.04. https://i.stack.imgur.com/WqHWM.pnghttps://i.stack.imgur.com/GEHeA.png Your assistance would be greatly appreciated. ...

problem encountered while executing python on the command line

Upon attempting to run Python in my terminal, I encountered the following error: -bash: /Users/steve/Library/Enthought/Canopy_64bit/User/bin/python: No such file or directory The issue arose because I had initially installed Anaconda and then mistakenly ...

My date function in Node JS is throwing an error, can someone please help me troubleshoot?

I encountered an error with new date(); while working with node js and express npm plugin. I built a variable date but faced some compilation errors. This is my code .js var update_time = new Date(); update_time.formatDate("y/m/d"); When I run ...

After updating npm, it seems like it's not working due to the outdated version of nodejs

Due to not having root user access on my server, I was unable to update nodejs to resolve the issue at hand. Is there an alternative method to restore the npm version without utilizing the npm command in the terminal? (as the current nodejs version is too ...

How can I determine the version of an NPM package if I can't display it using the nodemon --version command?

I attempted to execute some code in my hyper-terminal by deleting nodemon and then reinstalling it. However, despite these efforts, I am still unable to retrieve the version of nodemon. The error message I received reads as follows: "C:\Users&bso ...

What could be causing DEBUG to not output to the console?

I am currently learning about node.js and express through a tutorial. My issue lies with the debug feature not logging anything to the console, while console.log works perfectly fine. Despite being on Windows and attempting to run the app using "set DEBUG ...

Tips for launching multiple copies of a Python script that utilizes the subprocess.call function

In my Python script job.py, I accept command-line arguments and use the subprocess package to run external programs sequentially. With a desire to simultaneously run four instances of this script, each with different arguments on my processor with 4 cores, ...

Leverage the power of Node.js installation using Homebrew

When I run node -v in the terminal, it shows 0.12.2. However, when I check homebrew's version of node using brew info node, it displays 6.7.0 Is there a way to use homebrew's version of node (6.7.0) instead of the one currently installed (0.12.2)? Even a ...

Encountering a Next.js error when attempting to execute code on a live server

Encountering a frustrating error: Failed to compile ./utils/styles.js Error: failed to process internal error: entered unreachable code: assign property in object literal is invalid This annoying error popped up during the build process and can only be res ...

Obtain numerous JSON pages using jq

When making an API call, I receive a JSON response that can be formatted nicely using curl "https://mywebsite.com/api/cars.json&page=1" | jq '.' Displayed below is a sample of the output. Since there are multiple pages of data (112 total entries wi ...

The progress bars in the Docker console are not showing up as expected

I'm attempting to incorporate one of npm's terminal progress bars to visually represent the progress of a lengthy process. When I execute it using the standard "node index.js" command, everything works smoothly. However, when running it from a ba ...

What steps should I follow to successfully install ffmpeg-binaries without encountering any error messages?

Every time I attempt to install ffmpeg-libraries, I encounter the same error message. My goal is to create a music bot for discord.js and for that, I need ffmpeg-libraries. Despite reinstalling node.js (I am using the latest stable version), the process r ...

Access not granted while utilizing Yeoman for scaffolding an application

Having some trouble setting up a new project with Yeoman and Angular. I've tried running "yo angular" and "yo app", but keep encountering the same error message. Unfortunately, I'm not very familiar with Terminal. Error: EACCES, permission denied '/Users/ ...

Error message: "Error on MacOS - Symbol not found: ____chkstk_darwin when executing node or npm commands"

Whenever I try to run node or npm commands on the terminal (like node -v, npm -v, or just node or npm), I encounter the following error message: dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin Referenced from: /Users/alvarez/.nvm/ve ...

What can be achieved by combining Text Wrangler and terminal?

I'm curious about how to open an index.html file in terminal. For instance, I know that using sublime works like this: sublime index.html But what about textWrangler? And in general, how do I locate similar commands like "sublime" for any program of my c ...

Why is it that I am limited to running globally installed packages only?

Recently, I made the switch to Mac iOS and encountered an issue while setting up a new TypeScript backend project. All npm packages seem to be not functioning properly in my scripts. Cannot find module 'typescript/bin/tsc' Require stack: - /Users ...

After updating to Maverick, my node module has ceased to function properly

Everything was working fine with my app before I installed Maverick. However, after the installation, when I typed nodemon app.js in the terminal, it stopped working. To fix this, I reinstalled Node and then ran npm uninstall nodemon, followed by npm insta ...

Having difficulty organizing information from a text file using the sort command on the terminal

Having trouble sorting the data extracted using python code in Ubuntu terminal? The sorting seems off, with numbers like 9 coming after 99. See the example below. Here's the command I'm using in the Ubuntu terminal: python3 pythonfile.py file1. ...

Generating a package.json file that includes a comprehensive list of all development dependencies

My Inquiry I've been pondering whether it's possible to include all the necessary devDependencies within the package.json file generated by running npm init in the Terminal for Gulp projects. Can these dependencies be pre-listed in the file instead of hav ...

Having trouble with the installation of react-textfit

I attempted to use npm npm i react-textfit in order to enhance my calculator application, however it is not functioning as expected. https://i.stack.imgur.com/XW8hN.png ...

How can user input be captured in the terminal following the execution of npm start?

Imagine a basic program running in the background. Here is a simple simulation (index.js). process.stdin.resume(); console.log('just hanging...') If you run it with node index.js, nothing else will happen until you exit with ctrl+c. Even though ...

What steps should I follow to activate the Terminal plugin on Pycharm Edu version 3.5.1?

On a recent visit to JetBrains, the recommendation was to enable the Terminal plugin in Pycharm. However, I am unable to locate it anywhere within my application. This has become quite problematic as I urgently need access to the Terminal for an ongoing ...

After restarting the system, the npm command was nowhere to be found

Every time I restart my computer, the npm command stops working: -bash: npm: command not found Oddly enough, the node command still works perfectly fine. However, to fix the issue with npm, I have to reinstall Node.js from their official website. I've m ...

Error: The node user directory does not exist, please check your command input

After foolishly running this script in an attempt to avoid using sudo for npm -g commands, my node_modules directory has now moved to: /Users/myusername/.npm-packages/lib/node_modules Now when trying to run commands like yo or bower, I encounter the error ...

What steps should I take in order to ensure that NPM commands run smoothly within Eclipse?

I have a functional workflow that I'm looking to enhance. Currently, I am developing a JavaScript library and conducting smoke tests on the code by using webpack to bundle the library and save it to a file that can be included in an HTML file for test ...

How can I exit a terminal window with the help of Python?

After extensive research on the web, I was unable to find any information on how to properly close a terminal using Python code. The code snippet I tried using is as follows: if optionInput == "6": exit() This code successfully exits the script ...

Using MAMP and PHP in the Terminal

After setting up MAMP and using PHP successfully, I also tried running PHP commands in Terminal. However, now I am facing an issue where Terminal is unable to find the PHP command: "Terminal / PHP command not found" This has left me unable to work on any ...

What could be causing the issue with npm modules installation?

I've been having trouble installing the react-native-cli module, as well as any other module. Here's what I've tried: npm install -g react-native-cli When I run this command in the terminal, I keep getting an error. I've used node on Windows before and ...

Encountering an error on Linux while installing node: The version `GLIBC_2.27' required by node is not found at /lib64/libm.so.6

I recently tried to follow the steps outlined in this post about installing a node.tar.xz file in Linux: How to install node.tar.xz file in linux However, when I try running `node --version`, I encounter some errors. You can view the errors here. I'm no ...

Gzip is generating inaccurate compression ratios

Having an issue with script to build and gzip. vite build && gzip -9 -r dist && gzip -l -r dist The output from the last command is displayed here gzip -l -r dist compressed uncompressed ratio uncompressed_name ...

Node.js causing NPM error message to pop up consistently each time I launch the terminal

Hey there! Every time I open my terminal on my MacBook (OSX 10.15.4), I encounter this error message: /Users/anarenault/.nvm/v0.10.48/lib/node_modules/npm/bin/npm-cli.js:85 let notifier = require('update-notifier')({pkg}) ^^^^^^ ...

Locate PHP, MySQL, and Apache using the terminal/command line interface

When using my Mac terminal for web hosting purposes, I need to determine the PHP version, MySQL version, and Apache version for each website without using phpinfo() in a PHP file. Here is what phpinfo shows: php : PHP Version 5.6.40 mysql : mysqlnd 5.0.1 ...

Node version conflicts on macOS

Recently, I decided to switch over to Angular6 for my projects, but encountered an error message stating that my node version was outdated (lower than 8.9). After attempting to resolve this issue, it appears that my system is running two different versions ...

Execute shutdown command through terminal upon detection of a rising edge signal from GPIO input

Looking to automate the shutdown of my Raspberry Pi with GPIO #4. I want to set up a script that will run on startup. The python code is saved in file test1.py located at /home/pi #!/usr/bin/python print("Initializing") import RPi.GPIO as GPIO GPIO.setmo ...

Every time I try to run npm install followed by npm start, I keep getting bombarded with the same set of messages

namish@namishs-mbp ~ % npm install npm encountered some warnings during the installation process: - ENOENT: no such file or directory, open '/Users/namish/package.json' - No description - No repository field - No README data - No license field S ...

Upon opening the terminal, Vim's Ex mode is activated

Recently, I stumbled upon an issue with Vim in my Mac terminal. While copy and pasting text the other day, I accidentally triggered something that now causes Vim to load in Ex mode every time I open the Terminal. I am aware of how to exit Ex mode once insi ...

Searching for a method to locate and substitute a specific HTML string using the `sed` command in the macOS Catalina terminal

I am attempting to modify the following html code: <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 256 256"> to this updated version: <svg xmlns="http://www.w3.org/2000/svg" width="30&q ...

Major issue still remains unresolved with npx create-react-app

Every time I try to create a new React app with npx create-react-app my-app, I encounter a huge problem. Despite completely deleting Node, npm, and npx twice, re-downloading them, and ensuring that my $PATH is set to usr/local/bin, I am still faced with th ...

Is it possible for the terminal to automatically close itself after stopping the debugging process in VSCode

Is there a way to configure the terminal in VSCode on Linux to automatically close after stopping the debugging of a node.js program? ...

Installing the latest version of npm using the command npm install -g npm@latest may not

After attempting to update npm to the latest version, I am informed that the package has been updated. However, upon checking, it appears that the version remains the same as before the update. No error messages are displayed to indicate any issues during ...

"Cordova has been successfully installed, but it is currently experiencing difficulties initializing

After successfully installing node.js 8.9.3, I received the following message: This package has installed: • Node.js v8.9.3 to /usr/local/bin/node • npm v5.5.1 to /usr/local/bin/npm Make sure that /usr/local/bin is in your $PATH. Att ...

Having trouble with installing NPM and ng commands, neither of them is working. I may have to uninstall everything and begin from scratch

Learning Angular and how to use the terminal is all new to me. I recently installed NPM and attempted to use ng serve, but encountered a series of issues. At this point, I am considering completely uninstalling everything so I can start fresh. I've done s ...

Ending the built-in PHP server's operation on Mac Mavericks - Livecode

I have been exploring Livecode development and have been experimenting with the php server provided by Mavericks. To start the server, I executed the following command through the shell: php -S localhost:8000 This allowed me to successfully run PHP on lo ...

Every time I attempt to build a React application, I encounter an unexpected error

After running the command to install create-react-app, I encountered a strange error message when trying to create a new React app with the create-react-app name command: C:\Users\Mostafa Ossama\Desktop>create-react-app swag-shop-web Cr ...

I am encountering an issue with installing Cordova and Ionic globally using the command `sudo npm install -g cordova

Hey there! I recently attempted to install ionic using a command and encountered an Errno 17 error. npm ERR! code EEXIST npm ERR! syscall symlink npm ERR! path ../lib/node_modules/ionic/bin/ionic npm ERR! dest /Users/christopherwippel/.npm-global/bin/ ...

Create a custom Python graphical user interface that integrates a button for executing a command in the terminal

I currently have a project that involves two separate files. File number one handles eye-tracking and blinking calculations. This file runs whenever I input a command in the terminal using this line: python3 blink.py --shape-predictor shape_predictor_68_f ...

Maintaining the Execution of an ExpressJS Application Beyond Terminal Closure

When running my application on a server, I encounter the issue of it stopping as soon as I close the terminal window. How can I overcome this challenge? Is there a way to keep an application running permanently in the background? Are there any specific ...

Opening multiple scripts in individual terminal windows within VSCODE is a great method for better organization and efficiency

When setting up my development environment, I find it necessary to run multiple scripts. I have a preference for using VSCode. Although utilizing tools like concurrently is helpful, I would prefer each script to run in its own terminal window so that I ca ...

I made changes to my npm init config and now I am unable to revert it back to its original default settings

I attempted to set a default name in order to avoid typing it repeatedly, but unfortunately, my actions ended up causing issues with the creation of my package.json file. Now, when I execute 'npm init' in a new project, instead of going through the usual p ...

Is there a reason why I'm unable to install nodemon or supervisor using npm on OSX 10.8.4?

Recently, I've been facing an issue while trying to install nodemon or supervisor through the terminal. Despite running commands as the administrator using sudo npm install supervisor -g, I encountered errors when making changes to my JS code. Any solution ...

Error message displayed: "There was an issue locating (undefined) and (undefined) while attempting to run Angular-CLI command 'ng g c my-new-component'."

Issue: I'm experiencing a problem in my Angular 5+ app project. When I try to generate a new component in one of my subfolders using the command ng g c my-component, nothing is being generated. Instead, I am encountering some unknown errors. I have a ...

Having difficulty updating my npm package manager for node

When attempting to update my node package manager using the command npm install -g npm on my Windows system, I encountered an error that prevented me from updating successfully. PS C:\Users\LENOVO\Desktop\Toggle-Theme> npm install -g ...

What is the process for halting the Node.js (Express) server running in Hyper Terminal?

After closing hyper terminal when a server (port: 1000) based on Express.js and started with nodemon is running, I encountered the following error upon reopening the terminal and attempting to restart the server. I'm unsure if this issue is related to ...