Plamen
Plamen

Reputation: 360

MongoDB's Node.js Driver installation fails

I have nodejs and mongoDB installed on 32bit winXP veteran. And I am trying to link them.
In the mongoDB docs its stated that the easiest way is by this command:

npm install mongodb 

Unfortunately it throws the following exception:

"Failed to replace env in config: ${APPDATA}"

I tried to point the NODE_PATH variable to the "npm\node_modules" folder but this does not solve my problem.
What additional configuration am I missing?

Upvotes: 0

Views: 149

Answers (1)

Plamen
Plamen

Reputation: 360

In the end just ran the cmd not as Administrator but simply from my account and the command("npm install mongodb") worked as expected.

After that I uninstalled it since this was kind of weird. And again tried as Administrator and it failed again. And again succeeded with my account. So I left it be.

Upvotes: 1

Related Questions