Attempt to unlock node ng2-smart-table module

The development for ng2-smart-table has stalled, and I'm trying to build a fork for the repository, but it doesn't seem to be created.

I have already done similar things before and usually just create a repository fork. make my changes and then modify package.json in my main project to point to the github project

However, when I try to do this using ng2-smart-table, I get the error: Cannot install git + https://github.com/atlantageek/ng2-smart-table.git#8f37d374a87a9008328aaea36ad6ce78a28ce7a8 : Package version missing

I was also unable to decrypt the build release process, and the developers darkened over the problems. Does anyone have any directions.

+6
source share
1 answer

Just add version: 1.3.0to package.jsonyour repository with the current version of your package that npm can track.

And then run

npm install git+https://github.com/atlantageek/ng2-smart-table

I created a commit example that solves the problem https://github.com/huncode/ng2-smart-table/commit/8c32e8ccd8ba6274371851d779ffa7d128901964

Then you update the package, do not forget to run the version in your package.json package.

Alternatively, you can use the git tag (attached image) to get the exact version from the git repository

enter image description here

+4
source

All Articles