M
M
Max Rudik2016-08-10 22:59:08
Layout
Max Rudik, 2016-08-10 22:59:08

Why is the linked npm package not being written to package.json?

Good evening!
Actually, the question is in the title. Those packages that were linked before the creation of the package.json file were successfully registered in dependencies, everything that I installed globally and try to link after creating package.json is saved to the node modules folder, but is not written as a dependency. I tried to write npm link jade --save, it doesn't help either.
Thanks in advance for the hint.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Radkov, 2016-10-28
@paulradzkov

I did not use the link - there was no need - but according to the docs https://docs.npmjs.com/cli/link it does not have the "--save" switch.
You may need a simple "npm install jade --save".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question