-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors when searching for libs #44
Comments
What do you want to put in your package file that cannot be set with |
Thanks for the reply! In fact I was under the impression that through |
A few problems so far:
|
I am interested in customising my 'npm init' process (e.g. defining different default values or adding new settings to the generated 'package.json') and was under the impression that this could be done by adding a '~/.npm-init.js' file with contents similar as to the one described in the 'README.md' of the 'init-package-json' project.
However, I am stumbling upon what I believe are some path/configuration issues, mainly consisting of 'node_modules' not being found, despite the necessary dependencies being available in the global 'node_modules' dir.
Here is a simple example:
As already stated, glob is already globally available (installed with -g).
Now, if I try to explicitly set the node path, I get errors regarding other libs not available globally:
I could globally install the other necessary packages... but I feel that I may be tackling this problem the wrong way, and that manually specifying the node path plus manually installing dependencies seems like overkill. Am I missing some step/configuration that should allow the '~/.node-init.js' integration work more seamlessly?
The text was updated successfully, but these errors were encountered: