Skip to content

Instantly share code, notes, and snippets.

@developerworks
Last active August 29, 2015 14:19
Show Gist options
  • Save developerworks/0135f9036cbfa886686a to your computer and use it in GitHub Desktop.
Save developerworks/0135f9036cbfa886686a to your computer and use it in GitHub Desktop.
## Npm install error: Cannot find module
...
...
...
npm http fetch GET https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz
npm http request GET https://registry.npmjs.org/delayed-stream
npm http request GET https://registry.npmjs.org/mime-db
npm http request GET https://registry.npmjs.org/async
> [email protected] postinstall /root/embedding_ejabberd_into_an_elixir_phoenix_web_application/node_modules/brunch
> node setup.js postinstall
module.js:318
throw err;
^
Error: Cannot find module '/root/embedding_ejabberd_into_an_elixir_phoenix_web_application/node_modules/brunch/setup.js'
at Function.Module._resolveFilename (module.js:316:15)
at Function.Module._load (module.js:258:25)
at Function.Module.runMain (module.js:451:10)
at startup (node.js:124:18)
at node.js:868:3
npm http request GET https://registry.npmjs.org/readable-stream
npm http request GET https://registry.npmjs.org/assert-plus
npm http request GET https://registry.npmjs.org/asn1
npm http request GET https://registry.npmjs.org/ctype
...
...
...
## Running error with: iex -S mix phoenix.server
Erlang/OTP 17 [erts-6.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
[info] Running EmbeddingEjabberdIntoAnElixirPhoenixWebApplication.Endpoint with Cowboy on port 4000 (http)
Interactive Elixir (1.0.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> module.js:318
throw err;
^
Error: Cannot find module '/root/embedding_ejabberd_into_an_elixir_phoenix_web_application/node_modules/brunch/bin/brunch'
at Function.Module._resolveFilename (module.js:316:15)
at Function.Module._load (module.js:258:25)
at Function.Module.runMain (module.js:451:10)
at startup (node.js:124:18)
at node.js:868:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment