I installed mongodb on my system and am able to add & remove entries to it using Python. I'm trying to connect to it with JavaScript, but from what I understand I need to use node.js to do that.
I ran npm init
to create my package. Then did npm install mongodb --save
but it hangs and doesn't really seem to do anything. Does anyone have any ideas why? I'm using Windows 10, and the latest version of node.
package.json current looks like this:
{
"name": "mynewproject",
"version": "1.0.0",
"description": "This is a test.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"test",
"temp"
],
"author": "jason",
"license": "ISC"
}
And if I run install with --verbose it outputs this:
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli 'mongodb',
npm verb cli '--save',
npm verb cli '--verbose' ]
npm info using npm@3.10.10
npm info using node@v6.10.3
npm verb request uri https://registry.npmjs.org/mongodb
npm verb request no auth needed
npm info attempt registry request try #1 at 1:39:38 AM
npm verb request id d370b656acbd48fc
npm verb etag W/"591b1e51-96951"
npm verb lastModified Tue, 16 May 2017 15:44:17 GMT
npm http request GET https://registry.npmjs.org/mongodb
npm http 304 https://registry.npmjs.org/mongodb
npm verb headers { date: 'Sat, 20 May 2017 17:39:37 GMT',
npm verb headers via: '1.1 varnish',
npm verb headers 'cache-control': 'max-age=300',
npm verb headers etag: 'W/"591b1e51-96951"',
npm verb headers age: '211',
npm verb headers connection: 'keep-alive',
npm verb headers 'x-served-by': 'cache-sin18029-SIN',
npm verb headers 'x-cache': 'HIT',
npm verb headers 'x-cache-hits': '2',
npm verb headers 'x-timer': 'S1495301977.367907,VS0,VE1',
npm verb headers vary: 'Accept-Encoding' }
npm verb etag https://registry.npmjs.org/mongodb from cache
npm verb get saving mongodb to C:\Users\GreenCell\AppData\Roaming\npm-cache\registry.npmjs.org\mongodb\.cache.json
npm verb correctMkdir C:\Users\GreenCell\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
npm verb cache add spec mongodb
npm verb addNamed "latest" is being treated as a dist-tag for mongodb
npm info addNameTag [ 'mongodb', 'latest' ]
npm verb addNameTag registry:https://registry.npmjs.org/mongodb not in flight; fetching
npm verb get https://registry.npmjs.org/mongodb not expired, no request
npm verb addNamed "2.2.26" is a plain semver version for mongodb
npm verb addRemoteTarball https://registry.npmjs.org/mongodb/-/mongodb-2.2.26.tgz not in flight; adding
npm verb addRemoteTarball [ 'https://registry.npmjs.org/mongodb/-/mongodb-2.2.26.tgz',
npm verb addRemoteTarball '1bd50c557c277c98e1a05da38c9839c4922b034a' ]
[ ..............] / loadRequestedDeps: verb addRemoteTarball [ 'https://registry.npmjs.org/mongodb/-/mongodb-2.2.26.tgz',
via Green Cell
No comments:
Post a Comment