viatsko / lyn

Lyn: The Elixir CMS
https://hex.pm/packages/lyn
MIT License
89 stars 18 forks source link

npm dependency issues #11

Open pramsky opened 8 years ago

pramsky commented 8 years ago

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

npm reports dependency issues.

When running npm install I get:

npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.

Additionally when running iex -S mix phoenix.server or mix phoenix.server I get:

`[info] Running Lyn.Endpoint with Cowboy using http on port 4000 /Users/pramod/Projects/Audian/ClientWork/LHSBoosters/libertyhighboosters.org/priv/server.js:604 var ExecutionEnvironment = webpack_require(!(function webpackMissingModule() { var e = new Error("Cannot find module \"fbjs/lib/ExecutionEnvironment\""); e.code = 'MODULE_NOT_FOUND'; throw e; }())); ^

        Error: Cannot find module "fbjs/lib/ExecutionEnvironment"
                                                                     at webpackMissingModule (/Users/pramod/Projects/Audian/ClientWork/LHSBoosters/libertyhighboosters.org/priv/server.js:604:93)
     at Object.<anonymous> (/Users/pramod/Projects/Audian/ClientWork/LHSBoosters/libertyhighboosters.org/priv/server.js:604:199)
                                    at __webpack_require__ (/Users/pramod/Projects/Audian/ClientWork/LHSBoosters/libertyhighboosters.org/priv/server.js:20:30)
                                                                  at Object.<anonymous> (/Users/pramod/Projects/Audian/ClientWork/LHSBoosters/libertyhigh[error] GenServer #PID<0.442.0> terminating

\ (stop) :port_terminated Last message: {#Port<0.10658>, {:exit_status, 1}} State: {#Port<0.10658>, nil} `

Steps to Reproduce

  1. Clone Report and run migrations
  2. npm install
  3. mix phoenix.server

Expected behavior: Server runs

Actual behavior: Server does not run, reports missing 'Error: Cannot find module "fbjs/lib/ExecutionEnvironment"'

Versions

System:

OSX 10.10.5 Elixir: 1.2.6

brandondrew commented 7 years ago

Could this be solved by switching to YARN?

https://yarnpkg.com/