1

I have 2 github project. Let's say one is "mylibrary" and other is "test-project"

I have linked "mylibary" in "test-project" as GitHub URL. So the package.json looks like below.

dependencies: {
    "mylibrary": "git+ssh://[email protected]/user/mylibrary.git"
}

When I do npm install, "mylibrary" is getting downloaded and placed inside "node_modules"

But the clone version of my library doesn't have package-lock.json

ls node_modules/mylibrary | grep package-lock

yields no results

Any help would be great. Thanks.

1 Answer 1

1

This is by design. From npm documentation

One key detail about package-lock.json is that it cannot be published, and it will be ignored if found in any place other than the toplevel package.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.