Steps for adding a forked version of a library in package.json

Recently, I came across a React JS library called React Pacomo. Since the original version of this library is no longer being maintained, I decided to use my own forked version for my project. However, I am facing issues with compiling or building the library correctly.

When I normally install the original library in my package.json, it looks like this:

"react-pacomo": "0.5.1",

Upon checking the node_modules/react-pacomo directory, I can confirm that the library has been successfully built as it contains a lib folder:

$ ls node_modules/react-pacomo
README.md lib package.json test.js

However, when I attempt to install my forked version, the entry in my package.json changes to:

"@myname/react-pacomo": "git+ssh://<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6e09071a2e09071a061b0c400d0103">[email protected]</a>/myname/react-pacomo.git#0.5.1",

After running npm install, I notice that the library does not compile properly and upon inspection of

node_modules/@myname/react-pacomo
, there is no lib folder present. Any ideas why this could be happening?

Answer №1

Upon downloading the zip file from that specific release, I noticed that it does not include a lib folder. My assumption is that the lib folder gets generated once the package is officially published to NPM.

Here is the link to access the releases on GitHub

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

Can SVN hooks be incorporated into NPM in a way that is comparable to git hooks?

I want to incorporate an npm script that performs linting and testing before executing an svn commit. If there are any failures during the linting or tests, I want the commit process to halt, similar to a git commit hook. Does anyone have any recommendat ...

A problem arises when trying to showcase the content in a responsive manner on the hamburger menu, particularly when viewing on mobile

As a newcomer to web development, I decided to challenge myself by building an E-Commerce website to enhance my skills. To ensure mobile responsiveness, I opted for a hamburger menu to hide the navbar content. However, despite resizing working flawlessly, ...

The DOM fails to reflect changes in the data variable in VueJS

I am facing an issue while trying to update an array of arrays and display it as a reactive variable, however the DOM does not seem to reflect those changes. To achieve this, I have two components - a parent component and a child component: Parent Compon ...

Issues arise when attempting to install modules on Windows 10 using an early build of npm, as the process is halted by a 'bad signature'

Having a new Windows laptop running Windows 10 Pro, Version 20H2, Build 19042.1645, I am currently in the process of installing 64-bit Node v7.10.1 (along with npm v4.2.0) for my application's requirements. Unfortunately, this specific version of Node ...

Attempting to scroll through a webpage and extract data using Python and Selenium in a continuous manner

Recently, I posed a question (you can find it here: Python Web Scraping (Beautiful Soup, Selenium and PhantomJS): Only scraping part of full page) that shed light on an issue I encountered while attempting to scrape all the data from a webpage that updates ...

Tips for adding a class to the end of the DOM class

Greetings! I'm currently working with the code below: for ( let x: number = 0; x < this._vcr.element.nativeElement.querySelectorAll(".ui-steps-item").length; x++) { let className: any = this._vcr.element.nativeElement.querySelectorAll( ...

How about a custom-designed talking JavaScript pop-up?

Looking to customize the appearance (CSS, buttons...) of a "confirm" JavaScript dialog box while ensuring it remains persistent. The dialog box appears after a countdown, so it is crucial that it maintains focus even if the user is on another browser tab o ...

Retrieving specific data from nested arrays in Vue.js

I am currently working on Vue.js template development and facing an issue with filtering nested data in a faq section. When I try to add a search bar, the nested data array returns all data without proper filtering. Dom <v-container> <v ...

A JavaScript String Utilizing an HTML Document

When developing applications for my website using JQuery, I encountered an issue with pulling an html document into a string. I want the application button to open a window with the html document inside. I am attempting to modify this string variable with ...

When trying to link a Redis microservice with NestJS, the application becomes unresponsive

I am attempting to create a basic hybrid app following the guidance provided by Nest's documentation, but I have run into an issue where the app becomes unresponsive without any errors being thrown. main.ts import { NestFactory } from '@nestjs/c ...

Navigating Errors within Nested Promises: A Clear Perspective

Struggling with my first node.js backend, I am currently refactoring the login function. However, I seem to be missing something crucial when it comes to promise chaining and error handling. If anyone could help me identify where I'm going wrong, I wo ...

Make a POST request using Express API, supporting both JSON and XML data

I am facing a unique challenge with my express API. While it typically accepts JSON post requests, there is one particular API that requires an XML post body instead. To set up my express app accordingly, I have used the following configuration: // Init ...

Unable to showcase Mysql search outcomes in a distinct div section

I have been working on a project to showcase MySQL results by utilizing three different sections/divisions. In Division 1, there are radio buttons that allow for selecting and viewing the results based on different criteria. Division 2 contains text indica ...

byte sequence displays as binary data (angular + express)

I've been working on pulling files from a back-end Node.js / Express server and displaying them in an Angular front-end. Despite trying different methods, I keep facing the same issue - the data displayed at the front-end appears as a bytestring. Even ...

Struggling to upload an XLSX file in React using Ant Design?

I am currently in the process of learning React and I have encountered an issue with my upload button while using ant design. The button seems to work fine without the design element. Here is my original working code: export default ({ addItem }) => { ...

Creating an AJAX XML tree without the need for a backend server language

My goal is to create a nodes tree using the information from a data.xml file, similar to what is demonstrated in this example, all done through AJAX. Can this be accomplished without utilizing a server-side programming language? I have access to the enti ...

Is the OpenAI text-davinci-003 consistently providing just one suggestion?

I am currently working on retrieving an array of suggestions (multiple suggestions) for a specific prompt using Node.js. Here is the code snippet I have implemented so far: const completion = await openai.createCompletion({ model: complitionMod ...

Keep the user on the current page even after submitting the parameter

I have a situation where I am loading a page into a specific div. This loaded page contains a link that includes a parameter which directs to another page for deletion. However, when I click on the loaded page within the div, it redirects me to the deletio ...

What is the best way to receive a callback when a user cancels a dialog box to choose a mobile app after clicking on

I am currently exploring HTML coding for mobile devices and looking to integrate map routing functionality. When it comes to mobile devices, utilizing the local app is the more practical option, and I have had success implementing this by modifying the l ...

The issue of the menu in the <Select /> component unexpectedly closing is caused by the MaterialUI -withStyles higher-order component (HOC)

Issue Description When utilizing the <Select /> component with the multiple attribute, users should be able to select multiple options without the dropdown menu closing. This functionality works as intended when using the <Select /> component ...