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

Collaboratively utilizing resources among various NPM Workspaces

Currently, I am working on a React project using NPM Workspaces. I have created an 'assets' workspace within this project to store all images and assets that need to be accessed by other workspaces. The directory structure of the project is as fo ...

Obtaining an element in the Document Object Model (DOM) following

There are numerous questions and answers regarding this issue, but I am struggling to adapt it to my specific case. My extension fetches positions (1,2,...100) on the scores pages of a game. Upon initial page load, I receive the first 100 positions. Howev ...

How can I choose the div that is in the same container class div as this using Jquery?

As I cycle through data within a foreach loop, each iteration populates a container class as shown below: foreach($resultarray AS $value){ $filename = substr($value['img_file_name'],9); $cat_id = $value['cat_id']; ...

Enhance your React Highchart by incorporating gradient shading to the data points

One interesting feature in classic highcharts is the ability to apply gradient coloring to points: Highcharts.setOptions({ colors: Highcharts.getOptions().colors.map(function (color) { return { radialGradient: { cx: ...

Adjust the size of an input field in jquery or javascript based on user input

Ensure that an input text box can only contain a maximum of 13 numbers, but if the user enters a 14th number as a decimal point, then allow up to 16 numbers. HTML: <input type="text" maxlength="15" onkeyup="checkCurrency(this)"/> Script: func ...

Sending an array of arrays from routes to a view in Node.js is a straightforward process

I am attempting to send an array of arrays from routes to the view page. The data I want to pass looks like this: [ [10, 10], [20, 50], [30, 120], [40, 80], [50, 90], [60, 50], [70, 70], [80, 90], [90, 150], [100, 5 ...

Connect the private repository within the packages.json file of the app that has been deployed to Google Cloud

I'm in the process of setting up Continuous Deployment for my node.js app (my-app). The code is stored on Bitbucket and I'm utilizing Bitbucket's Pipelines for deployment to Google Cloud Platform, specifically App Engine. The issue arises w ...

When working with a set of objects, consider utilizing jQuery's InArray() method to effectively handle

Within my Javascript code, I am working with an array of Calendar objects. Each Calendar object contains an array of CalendarEvent objects. Every CalendarEvent object holds properties for Date and Name. I am looking to determine if a specific date exist ...

I am experiencing difficulty accessing other files from my index page in Express

After uploading my index.pug page on cloud9, I encountered an issue where I could access the page correctly using (appname).c9users.io/. However, when trying to include external CSS and JS files that were located in the same folder as my index.pug page, I ...

The Transition Division Is Malfunctioning

I've encountered an issue where I am trying to move a div by adjusting its left property, but no transition is taking place. Regardless of the changes I make to my code, the result remains the same. Below is the current state of the code. Can anyone i ...

What is the best way to create a percentage glyphicon star icon that reflects a decimal average rating?

I have an average rating of 4.3 and I need to create a logic to display this as 4.3 stars (4 whole stars and the 5th star partially filled). The maximum rating is out of 5. Despite referring to examples on Stack Overflow and creating a JSFiddle, I am unabl ...

Exploring ReactJS and extracting data from an input box after it has been rendered

I have developed a reactJS application that retrieves barcode information from a service. In case the barcode is not found, I display an error message to the user along with an input box and a button, prompting them to manually enter a barcode. Below is th ...

Personalize the appearance of material UI Switch when it is both checked and disabled

Struggling with applying styles to a Material UI Switch component in React when it's disabled. I've attempted to use withStyles for this purpose, and while the styling for checked vs unchecked states and the track are working fine, I can't s ...

Effectively controlling two distinct Azure resources within one domain name through domain routing

I am currently in the process of deploying a React application on Microsoft Azure that includes a basic content management feature. Essentially, when users visit the website and access static content, the app retrieves HTML code from a database and display ...

What is the process for initiating a local Lambda edge viewer request?

Is there a way to run aws cloudfront lambda edge functions locally and simulate the event in order to observe the response from one of the four functions? I made modifications to the viewerRequest function of lambdaEdge, but I'm wondering if there is ...

Saving json data into an SQLite database with the help of nodeJS

I'm completely new to Javascript and I'm attempting to save a json file into the database. However, I've encountered an error that is causing some issues: $ node db.js module.js:339 throw err; ^ Error: Cannot find module './comm ...

When running `npm test`, Mocha TS tests encounter failure, but the issue does not arise when executing them

When running tests in my Typescript nodejs project, I use the following command: mocha --compilers ts:ts-node/register,tsx:ts-node/register The tests run successfully with this command. However, when I try to run them using npm test, I encounter the foll ...

Leveraging callback functions for dynamically updating a JSON structure

Recently, I've been working on a db_functions.js file that includes several functions designed to interact with a database. Here's an excerpt from the script: function getUsers(client, fn){ //var directors = {}; client.keys('*' ...

React's Conditional Rendering

Let's imagine having these initial conditions: this.state = {plans: [], phase: 'daybreak'} along with a dynamic JSON object fetched from an API containing various schedules that may change periodically, for example: plans = {"daybreak": " ...

What is the best way to merge three MongoDB queries into one consolidated query?

I currently have three different sets of data collections structured as shown below: db={ "category": [ { "_id": "64841d0280a7a74a913b7935", "name": "Cat A", }, { &quo ...