The function cb() was never executed during the installation of @vue/cli

Hey everyone, I'm new to this and currently facing an issue while trying to set up vue cli for frontend development using npm.

After running sudo npm install -g @vue/cli, the following output shows up:

[18:00 vue]$ sudo npm install -g @vue/cli 
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fdbddaaeeacaf3c8dbd7d7cbc7db">[email protected]</a>: request has been deprecated, see https://github.com/request/request/issues/3142
// more npm warnings and errors...
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-01-18T13_06_37_662Z-debug.log

If you need additional details, you can check out the full log here.

I've tried running the command both with and without sudo, but encountered the same error every time. My system specifications are Manjaro KDE 20.2 with npm version 6.14.9 and node v15.4.0. Here's what I've attempted so far:

  • Attempting the installation multiple times
  • sudo npm cache verify and sudo npm cache clean --force
  • Removing /usr/lib/node_modules
  • Reinstalling node and npm
  • Exploring various solutions from online resources

I've been stuck on this issue for a few days now and any guidance would be greatly appreciated.

An interesting observation is that the installation works without the -g flag, installing in the current directory. However, I'm unsure how to use the vue command under this setup.

Answer №1

After removing Manjaro, I decided to switch to the latest version of Ubuntu which successfully resolved my issue. From now on, I will stick with Ubuntu and not consider reinstalling Manjaro.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using npm to add a SOAP client with authentication headers

I am currently working on integrating the npm soap package to establish endpoints for a remote server that can be accessed via Angular 4. Despite going through the documentation, I still find myself uncertain about its practical application. The WSDL provi ...

Error occurs during npm installation, causing the node_modules directory to vanish unexpectedly

Excuse me if my query seems out of place; I have recently taken over a website that utilizes grunt, npm, and other tools to manage its styling and scripting assets. This is not my usual area of expertise (I am primarily a software developer filling in unti ...

Use a npm script within another npm script

Take a look at this snippet from a package.json file: { // ... "scripts": { "start": "npm run b -- --watch", "build": "builder --in src --out dest" } // ... } Now, when I execute the build command within the start command and ad ...

Module missing from Heroku

While attempting to deploy a basic node.js server on Heroku, I consistently encounter the following error: Error: Cannot find module 'morgan' I have included morgan in my package.json under devDependencies for HTTP logging purposes, alongside v ...

Error encountered while setting up dependencies on VPS due to SQLite problem

I am currently in the process of hosting a Discord bot developed in TypeScript on my VPS provided by galaxygate, running Ubuntu 20.04. Fortunately, Git was already installed on the server, so I cloned and pulled my project from GitHub. Next, I attempted t ...

Error: The property 'send' cannot be read because it is undefined - Node.js

We have integrated a Node.js package called springedge to handle SMS functionality in our project: npm install springedge Below is the code snippet from the file send_messages.js: var springedge = require('springedge'); var params = { &apos ...

In order to link a package using npm, the package name must contain a specified name field

Hi there, currently I am grappling with the task of creating a docker image. A small section of my docker file is causing some trouble, and I suspect it's related to the nodejs package. The softlink in question looks like this: ls -la "/usr/bin/npm" ...

Encountered a failure while attempting to substitute environment variables in configuration files with the help of Bash and

Trying to integrate a private NPM module into my application is proving to be quite challenging. I need to configure the NPM access tokens correctly so that third-party tools like Heroku and CI can access and install the module. In my ~/.bash_profile, I h ...

Steps for initiating an Angular 4 project

While most developers have moved on to Angular 5, I was tasked with creating a project using Angular 4. After conducting research for several days, I discovered that downgrading the Angular CLI would allow me to accomplish this. By following this approach, ...

Typedoc Error: Attempted to assign a value to an undefined option (mode)

After installing typedoc with the command npm install typedoc --save-dev, I proceeded to add typedocOptions to tsconfig.json: { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", // ...some lin ...

The module in Node.js is unable to be loaded

Dealing with a common problem here. Despite trying to reinstall npm, deleting node_modules files and package-lock.json, the issue persists. The console output is as follows: node:internal/modules/cjs/loader:1080 throw err; ^ Error: Cannot find module &apo ...

When node.js v6.11.2 is installed on Windows 7, it does not include the correct npm version

When trying to install node.js v6.11.2 on my Windows 7 computer, I am encountering an issue where it is installing the incorrect version of npm alongside it. Even after downloading the installer directly from node.js' website which claims that 6.11.2 ...

An error occurred while checking the Node.js npm version in internal/modules/cjs/loader.js at line 892

In Node.js, I am encountering an error while checking the npm version. The error message is as follows: internal/modules/cjs/loader.js:892 throw err # below error occurs npm -v https://i.stack.imgur.com/UouXf.jpg # below error occurs npm -v readline-sy ...

Access to the specified executable files created by either electron-packager or electron-forge is restricted by Windows

Running into an issue on my Win 8.1 x64 machine where the Windows binaries are generating an error message upon execution. Encountering a Windows error stating: "Windows cannot access the specified device, path, or file. You may not have the appropriate ...

Collaborate on a single file across multiple git repositories to allow for updates from multiple users

I'm currently in the process of automating the markdown spell check for all documents on my website, which are spread across multiple git repositories. I have a .spelling file that includes all the words to be excluded from the documents. My goal is t ...

Leverage a personal npm repository within a Docker environment

We have a secure npm repository hosted using sinopia with basic auth credentials. Our application relies on the npm package from this private repo. I generated an authentication token and attempted to use it, but encountered an error at the line RUN npm in ...

Encountering difficulties with the installation of Ionic's software

Having trouble installing Ionic on Windows and running into issues with the npm commands. Despite a successful "npm install" command, when trying to run an Ionic command like "ionic start," or even just "ionic -version," the shell responds with "'Ioni ...

NPM is downloading an incorrect version of Angular (8.1.0)

After running the command "npm run ng --version", I see version 6.4.1 displayed. npm run ng --version However, when I run the command "npm install -g @angular/cli", it installs version 8.1.0 and generates an error. This is confusing to me. npm install - ...

When trying to install NodeJS version 14, it unexpectedly installs NodeJS version 8 instead

I'm struggling with getting nodejs up and running on my Ubuntu 18 PC. I've followed these steps one by one: sudo apt update curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - sudo apt -y install nodejs After that, I checked the versio ...

Having trouble with installing Angular CLI due to an error that says "Hosted-git-info module not found"

While attempting to initiate a new project using ng new, I encountered the following error: npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'hosted-git-info' Below is the detailed log file: 0 info it worked if it ends with ok 1 verb ...