Created
September 21, 2015 17:36
-
-
Save nickpresta/513ccf6be4f40db60b2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm init | |
This utility will walk you through creating a package.json file. | |
It only covers the most common items, and tries to guess sensible defaults. | |
See `npm help json` for definitive documentation on these fields | |
and exactly what they do. | |
Use `npm install <pkg> --save` afterwards to install a package and | |
save it as a dependency in the package.json file. | |
Press ^C at any time to quit. | |
name: (test-redux-router) | |
version: (1.0.0) | |
description: | |
entry point: (index.js) | |
test command: | |
git repository: | |
keywords: | |
author: | |
license: (ISC) | |
About to write to /Users/nickp/test-redux-router/package.json: | |
{ | |
"name": "test-redux-router", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC" | |
} | |
Is this ok? (yes) yes | |
$ npm install --loglevel=verbose --registry=http://registry.npmjs.org --save redux-router | |
npm info it worked if it ends with ok | |
npm verb cli [ '/Users/nickp/.nvm/versions/node/v4.1.0/bin/node', | |
npm verb cli '/Users/nickp/.nvm/versions/node/v4.1.0/bin/npm', | |
npm verb cli 'install', | |
npm verb cli '--loglevel=verbose', | |
npm verb cli '--registry=http://registry.npmjs.org', | |
npm verb cli '--save', | |
npm verb cli 'redux-router' ] | |
npm info using [email protected] | |
npm info using [email protected] | |
npm verb install initial load of /Users/nickp/test-redux-router/package.json | |
npm WARN package.json [email protected] No description | |
npm WARN package.json [email protected] No repository field. | |
npm WARN package.json [email protected] No README data | |
npm verb readDependencies loading dependencies from /Users/nickp/test-redux-router/package.json | |
npm verb cache add spec redux-router | |
npm verb addNamed "*" is a valid semver range for redux-router | |
npm verb addNameRange registry:http://registry.npmjs.org/redux-router not in flight; fetching | |
npm verb request uri http://registry.npmjs.org/redux-router | |
npm verb request no auth needed | |
npm info attempt registry request try #1 at 1:29:53 PM | |
npm verb request id 6238412c9241ab23 | |
npm verb etag "5QEZZ3ZAVTKMGJYDTPZ5DY6YA" | |
npm http request GET http://registry.npmjs.org/redux-router | |
npm http 304 http://registry.npmjs.org/redux-router | |
npm verb headers { date: 'Mon, 21 Sep 2015 17:29:54 GMT', | |
npm verb headers via: '1.1 varnish', | |
npm verb headers 'cache-control': 'max-age=60', | |
npm verb headers etag: '"5QEZZ3ZAVTKMGJYDTPZ5DY6YA"', | |
npm verb headers age: '0', | |
npm verb headers connection: 'keep-alive', | |
npm verb headers 'x-served-by': 'cache-dfw1835-DFW', | |
npm verb headers 'x-cache': 'MISS', | |
npm verb headers 'x-cache-hits': '0', | |
npm verb headers 'x-timer': 'S1442856594.412556,VS0,VE78', | |
npm verb headers vary: 'Accept' } | |
npm verb etag http://registry.npmjs.org/redux-router from cache | |
npm verb get saving redux-router to /Users/nickp/.npm/registry.npmjs.org/redux-router/.cache.json | |
npm verb addNamed "0.1.0" is a plain semver version for redux-router | |
npm verb afterAdd /Users/nickp/.npm/redux-router/0.1.0/package/package.json not in flight; writing | |
npm verb afterAdd /Users/nickp/.npm/redux-router/0.1.0/package/package.json written | |
npm info install [email protected] into /Users/nickp/test-redux-router | |
npm info installOne [email protected] | |
npm verb installOne of redux-router to /Users/nickp/test-redux-router not in flight; installing | |
npm verb lock using /Users/nickp/.npm/_locks/redux-router-f9cf3ef88276b026.lock for /Users/nickp/test-redux-router/node_modules/redux-router | |
npm verb unbuild node_modules/redux-router | |
npm verb gentlyRm don't care about contents; nuking /Users/nickp/test-redux-router/node_modules/redux-router | |
npm verb tar unpack /Users/nickp/.npm/redux-router/0.1.0/package.tgz | |
npm verb tar unpacking to /Users/nickp/test-redux-router/node_modules/redux-router | |
npm verb gentlyRm don't care about contents; nuking /Users/nickp/test-redux-router/node_modules/redux-router | |
npm verb write writing to /Users/nickp/test-redux-router/node_modules/redux-router/package.json | |
npm info preinstall [email protected] | |
npm verb readDependencies loading dependencies from /Users/nickp/test-redux-router/node_modules/redux-router/package.json | |
npm verb readDependencies loading dependencies from /Users/nickp/test-redux-router/node_modules/redux-router/package.json | |
npm verb about to build /Users/nickp/test-redux-router/node_modules/redux-router | |
npm info build /Users/nickp/test-redux-router/node_modules/redux-router | |
npm info linkStuff [email protected] | |
npm verb linkBins [email protected] | |
npm verb linkMans [email protected] | |
npm verb rebuildBundles [email protected] | |
npm info install [email protected] | |
npm info postinstall [email protected] | |
npm verb unlock done using /Users/nickp/.npm/_locks/redux-router-f9cf3ef88276b026.lock for /Users/nickp/test-redux-router/node_modules/redux-router | |
npm verb validateInstall loading /Users/nickp/test-redux-router/package.json for validation | |
[email protected] node_modules/redux-router | |
npm verb save saving { 'redux-router': '^0.1.0' } | |
npm verb exit [ 0, true ] | |
npm info ok | |
$ cat package.json | |
{ | |
"name": "test-redux-router", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"redux-router": "^0.1.0" | |
} | |
} | |
$ ls node_modules/redux-router/ | |
package.json | |
$ node | |
> require('redux-router') | |
Error: Cannot find module 'redux-router' | |
at Function.Module._resolveFilename (module.js:336:15) | |
at Function.Module._load (module.js:286:25) | |
at Module.require (module.js:365:17) | |
at require (module.js:384:17) | |
at repl:1:1 | |
at REPLServer.defaultEval (repl.js:164:27) | |
at bound (domain.js:250:14) | |
at REPLServer.runBound [as eval] (domain.js:263:12) | |
at REPLServer.<anonymous> (repl.js:392:12) | |
at emitOne (events.js:82:20) |
delete the module and reinstall with npm install [email protected]
if you are trying to use with react .14 and router 1.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever solve this? I have the same problem :(