Npm installs a different version
See original GitHub issueHi, I love this control, nice and simple.
I have this issue though, when I check the code on the repo there is this method:
setContent: function (content) {
setContent: function (content) {
var container = this.getContainer();
if (typeof content === 'string') {
container.innerHTML = content;
} else {
// clean current content
while (container.firstChild) {
container.removeChild(container.firstChild);
}
container.appendChild(content);
}
return this;
},
which does exactly what I need. But after installing via npm install leaflet-sidebar
the mentioned method looks like this:
setContent: function (content) {
this.getContainer().innerHTML = content;
return this;
},
Is there a way you can sync npm
version to this one? Or shall I go for the install from repo option?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
how to install multiple versions of package using npm
The best idea I've come up with is to "clone" a package, and publish it with a slightly different name. For example, if...
Read more >NPM: Install Specific Version of a Package
When you run the install command like this, by default it retrieves the latest version of the specified package, which in this case...
Read more >How to Install Specific Version of Node.js Package
Here is how you install Node.js specific version. ... Install a Specific Version of the NPM Package; Identify Specific Version of Installed ......
Read more >How to install a specific version of an npm package
To install a specific version of a package, you need to state the version you want to install using the @ symbol. The...
Read more >How to Install Multiple Versions of the Same Package in NPM
You can use this Node package manager (nvm) to handle different versions of Node.js without installing the bundle. To sum it up: NPM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you guys for your time and effort 😃
Published!