You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reporting this issue for the records mostly - in case it will lineup with another thread one day...
Building a new MEAN stack project from IDE every module dependencies in package.json file were installed from Run As... > npm install but one: mongoose.
mongoose depends on mongodb that depends on bson module: the bson module didn't build from IDE therefore mongoose installation failed.
What let me think this is not a module but an IDE issue is quite simple: $ npm install from a command line is working just fine.
That is quite possible, because when running npm install from within Eclipse, Java runs in process environment, that is different from OS shell. (I know now better after making simple Maven and Gradle plugins for Eclipse)
What is needed is to know what new process environment lacks, it may be some environment variable
Please add postinstall script in package.json and compare
"scripts": {
"test": "echo \"Error: no test specified! Configure in package.json\" && exit 1",
"postinstall": "node pev.js"
},
Just try to lunch other process from Node and Java and you will see that it will run in bare environment quite different from OS shell. OS shell is cmd on windows.
Try check if package.json has e.g. preinstall option.
Activity
[-]NPM install issue[/-][+]NPM install issue - bson module didn't build [/+]paulvi commentedon Nov 5, 2014
That is quite possible, because when running
npm installfrom within Eclipse, Java runs in process environment, that is different from OS shell. (I know now better after making simple Maven and Gradle plugins for Eclipse)What is needed is to know what new process environment lacks, it may be some environment variable
Please add
postinstallscript inpackage.jsonand comparepev.js
no more others ideas so far
paulvi commentedon Nov 5, 2014
Just try to lunch other process from Node and Java and you will see that it will run in bare environment quite different from OS shell. OS shell is
cmdon windows.Try check if
package.jsonhas e.g.preinstalloption.The Java code for launching
npmis old https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/npm/LaunchConfigurationDelegate.javaand it lacks environment variable handling I added for Node.js
But before blindly adding more environment variables, it would be nice to have some reference docs... What is minimal and needed for
npmto run ?paulvi commentedon Nov 6, 2014
I don't see added value in this log
#177 pass EnvVar to launched npm similar to Node debugging
paulvi commentedon Nov 6, 2014
@nodeleaf I have added similar handling on envVar to npm launch.
But I am not testing it against
bsonmodule.So once 0.18 is released, we can return and check this issue.
pass environment variables to launched npm similar to Node debugging
#177 Editor for bower.json