NPM is currently malfunctioning and displaying the following error message: npm ERR! 404

When running npm update -g, the following error occurs:

npm ERR! code E404
npm ERR! 404 Not found : default-html-example
npm ERR! 404
npm ERR! 404 'default-html-example' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-10-25T22_24_12_353Z-debug.log

This error seems to appear after running any command now. For instance, when running ./node_modules/.bin/eslin . in any project, the linter results are displayed but with the same error message at the end of the output.

--- UPDATE ---

Upon further investigation, it has been discovered that:

  • There is something named
    /usr/local/lib/node_modules/default-html-example
  • This appears to be a tutorial example worked on previously and linked improperly to the system.
  • Investigating further reveals that it is a symlink to a tutorial located at:
    default-html-example -> /Users/me/learning/lynda_com_JavaScript_Essential_Training/MY_Ex_Files_JavaScript_EssT/Exercise_Files/default

The origin of how this ended up there remains a mystery.

Answer №1

The problem was resolved by locating and deleting the unexpected folder

/usr/local/lib/node_modules/default-html-example
.

I remain puzzled as to how this mystery folder ended up in such an odd location. It was originally created for one of my initial tutorial projects.

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

After completing the mapSeries operation, I aim to re-implement the function

How can I return queries (functions) after performing mapSeries? Any help is appreciated! async querys(querys) { const pool = await poolPromise; if (pool != null) { const transaction = new sql.Transaction(pool); ...

Tips for positioning the labels in a sankey diagram for optimal alignment

When multiple values are the same in this scenario, such as 0, the labels start to overlap. Can anyone provide guidance on how to align these labels vertically? Ideally, I would like them to be positioned at the top of the node/bar. Highcharts.chart(&apos ...

Leverage an NPM package within a web browser

Is it possible to include Redux in a simple web app using the script tag? I am looking for a way to integrate Redux into my basic web application by including it in the following manner: <script type="text/javascript" src="js/redux.js"></script& ...

Encountered an issue while trying to deploy on Vercel (Error: Command "npm run build" ended with exit code 127)

I have been using parcel-bundler for compiling my sass files in my projects. Typically, I use 'npm start' instead of 'npm run build' and it has always worked smoothly. However, recently when attempting to deploy my project on Vercel, it ...

Upcoming construction: Issue encountered - The Babel loader in Next.js is unable to process .mjs or .cjs configuration files

Within my package.json file, I have set "type": "module" and "next": "^12.2.5". In my tsconfig.json: { "compilerOptions": { "target": "ES2022", "module": "esnext ...

Make the default request by utilizing a function as the header

Is there a way to pass a function as a request header using the NPM request module's request.defaults API? I want the function's result to become the header value every time I make an outgoing request. For example: request.defaults({ header ...

Assistance needed for iterating through JSON data

I need assistance retrieving specific data from a JSON response in my JavaScript code. Unfortunately, the current approach is not providing the desired results: This is my JavaScript code snippet: function retrieveArtists(response){ var artistList ...

How can we add up the sum with just one click and then display the

Is there a way to calculate numbers within specific DIV boxes and display the total in a separate DIV when a box is clicked? I've attempted different methods, including enclosing the code within the window.onclick function. Check out my code on this J ...

Despite a successful installation, the rimraf command is not discoverable on Windows

I've encountered an issue with rimraf where it installs successfully but the command is not recognized when trying to use it. The error message states "'rimraf' is not recognized as an internal or external command, operable program or batch ...

Angular 4: The Authguard (canActivate) is failing to effectively block the URL, causing the app to break and preventing access to all resources. Surprisingly, no errors are being

I have created an authguard, but it seems to not be blocking the route when the user is logged out. The authentication workflow in the app works fine, as I am using traditional sessions on the backend database. I have also verified the state of the auth se ...

What is the best way to manage a promise's response?

I'm currently facing a situation where I need to create a petition to an endpoint and retrieve the URL of the backend that I intend to use. My setup involves a file with the API configuration where I instantiate axios. Previously, my approach was sim ...

Vue ESLint error: Missing space before function parentheses issue

I just finished setting up a project using npm and vuejs/vue-cli. Inside my package.json file, I have eslint configurations specified. However, when I tried running my code, I encountered a warning: WARNING Compiled with 1 warnings 5:57:37 AM ✘ ...

Design a TypeScript interface inspired by a set static array

I am working with an array of predefined strings and I need to create an interface based on them. To illustrate, here is an example of pseudo-interfaces: const options = ["option1", "option2", "option3"]; interface Selection { choice: keyof options; ...

Seeking assistance with formatting output for OpenCPU and igraph

Here is my adjacency array data: var g = [[10, 2], [15, 0], [18, 3], [19, 6], [20, 8.5], [25, 10], [30, 9], [35, 8], [40, 5], [45, 6], [50, 2.5]] The code I am using in OpenCPU is as follows: ocpu.call("centralization.closeness", {graph: g} ...

The global installation of npm using npm install -g does not work

Running Windows Server 2008 R2 x64 with npm version 3.9.6, I'm attempting to globally install a package using the command: npm install -g gulp-cli The package is being installed in c:\Users[Me]\AppData\Roaming\npm What could be ...

What is the best way to set the first option in a mat-select to be

My approach to date selection involves using 3 mat-select components for day, month, and year. You can view a demo of this setup here. In an attempt to improve the code, I decided to set the initial options as null by modifying the following lines: allDat ...

ReactJs CSS - This file type requires a specific loader for processing. There are currently no loaders configured to handle this file

I've noticed that this issue has been raised multiple times before. Despite going through all the questions, I still can't seem to resolve it. The transition from Typescript to Javascript went smoothly until I reached the implementation of CSS. U ...

Connect and interact with others through the Share Dialogues feature in the

Update - Edit I'm just starting to explore the concept of share dialogues and I want to integrate it into my website. On my site, there is a reaction timer game that shows the user's reaction time in seconds in a modal popup. I want users to be ...

highlight the selected option in the ng-repeat list of items

Looking for some assistance with a coding problem I'm having. I keep running into an error when trying to make a selected item in an ng-repeat list highlight. The CSS style is only applied on the second click, not the first. Additionally, I need to en ...

Generate a responsive list with a pop-up feature under each item (using Vue.js)

Currently, I believe that Vue may not be necessary since most tasks can be done using JavaScript and CSS. I am attempting to design a list layout as follows: [A] [B] [C] [D] When an item is clicked, the information about that specific item should ...