I met a problem when install module 'mongoose' on Mac, the following is the install info:
it seems the error info has been written into builderror.log, the content of the builderror.log is:
when I type 'npm list', you can see mongoose is in the list:
however, under directory /usr/local/bin, you couldn't see module 'mongoose':
Now the problem is the system can't find the 'mongoose' module, just like:
the content of test.js is as following, just test whether can collect to the db:
This problem only happens when install module 'mongoose'. If install other modules, the system can find the module correctly. Anyone know how to solve this problem?
Did you run mongo in separate tab? Try to run sudo mongod and another tab node test.js
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.