I have organized my folders exactly how I want them to be. In one specific folder, all of my configuration files reside (most importantly package.json). I am looking to install this package.json configuration in a different path, specifically c\install\grunt.
When I use npm install -g
, the installation is directed to my user account space at some_long_path.
By using npm install
, it will install the configuration in the current directory.
For installing it in a specific path, I can use
npm install --prefix correct_path
. It seems like a good solution, but now it also requires the package.json file to be present there.
Despite setting up the etc directory as instructed, an error occurs during the process.
I prefer not changing the name of the node_modules folder; all I need is to keep my package.json file separate from the installation files.
I understand this approach may seem unconventional, but it aligns with my preferences.
My main question is: Is this setup possible? If so, where can I find documentation regarding this?
Thank you.