and i wanna create a new subdirectory in my project directory. My question is, will i be able to access modules from package.json that is in the home directory?
How can i access my npm packages I've already installed? Or do i need to npm init again in my subdirectory?
No you just need one package.json at the top of your project tree, all respective subdirectories will resolve the module and package paths
Обсуждают сегодня