Description
What / Why
Imagine you have a big project with a lot of npm dependencies, but which is not supposed to have dependants, that is, a sole single project from which no other packages are supposed to depend on. An exemple is the npm package autocosts
, 54 dependencies and 0 dependants.
When I install this package on a new machine or newly created directory, the file/directory structure becomes:
package-lock.json
node_modules/
autocosts/
node_modules/
When
When I run npm install <package>
on an empty directory or a new machine
How
Current Behavior
It makes this folder/file structure with no package.json
for the current package
package-lock.json
node_modules/
autocosts/
node_modules/
Then if I want to start the server npm start
an error occurs, that is, the command npm i autocosts && npm start
does not work
Expected Behavior
The folder structure should just be with an extra option npm i autocosts --sole
(files of package)
package.json
package-lock.json
node_modules/
other_dirs/
Basically I'm requesting an extra option to make it possible to install everything directly in the current directory