Reputation: 1409
I fork a git repo of vuejs to be specifically edited just for my project. I installed it successfully by
npm install bondythegreat/vue-input-tag --save
it creates
"vue-input-tag": "github:bondythegreat/vue-input-tag",
and I can see it in the node_modules directory after installation.
But with the original package, I can easily use it by calling it in my JavaScript code like this:
import taginput from 'vue-input-tag'
but how can I call this package of the forked code? Because it throws an error when I npm run watch
.
Upvotes: 1
Views: 289
Reputation: 164811
Either set your package name to just
"name": "vue-input-tag",
or revert back to your commit where you used a scoped package name
"name": "@bondythegreat/vue-input-tag",
and use
import taginput from '@bondythegreat/vue-input-tag'
Upvotes: 1