Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Error: Cannot find module 'express' during saltpad startup in devServer.js #183

Open
onorua opened this issue Sep 7, 2016 · 8 comments
Open

Comments

@onorua
Copy link

onorua commented Sep 7, 2016

what I have:

  • GNU/Linux Debian system with kernel Linux 4.7.0-1-amd64
  • Docker 1.12.1
  • docker-compose version 1.8.0

what I've got

I'm following documentation for running saltpad with docker, and during startup I get following error:

docker-compose up saltpad
Starting saltpad_saltpad_1
Attaching to saltpad_saltpad_1
saltpad_1   | npm info it worked if it ends with ok
saltpad_1   | npm info using [email protected]
saltpad_1   | npm info using [email protected]
saltpad_1   | npm info lifecycle saltpad@~prestart: saltpad@
saltpad_1   | npm info lifecycle saltpad@~start: saltpad@
saltpad_1   | 
saltpad_1   | > saltpad@ start /usr/src/app
saltpad_1   | > node devServer.js
saltpad_1   | 
saltpad_1   | module.js:457
saltpad_1   |     throw err;
saltpad_1   |     ^
saltpad_1   | 
saltpad_1   | Error: Cannot find module 'express'
saltpad_1   |     at Function.Module._resolveFilename (module.js:455:15)
saltpad_1   |     at Function.Module._load (module.js:403:25)
saltpad_1   |     at Module.require (module.js:483:17)
saltpad_1   |     at require (internal/module.js:20:19)
saltpad_1   |     at Object.<anonymous> (/usr/src/app/devServer.js:2:15)
saltpad_1   |     at Module._compile (module.js:556:32)
saltpad_1   |     at Object.Module._extensions..js (module.js:565:10)
saltpad_1   |     at Module.load (module.js:473:32)
saltpad_1   |     at tryModuleLoad (module.js:432:12)
saltpad_1   |     at Function.Module._load (module.js:424:3)
saltpad_1   | 
saltpad_1   | npm info lifecycle saltpad@~start: Failed to exec start script
saltpad_1   | npm ERR! Linux 4.7.0-1-amd64
saltpad_1   | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
saltpad_1   | npm ERR! node v6.5.0
saltpad_1   | npm ERR! npm  v3.10.6
saltpad_1   | npm ERR! code ELIFECYCLE
saltpad_1   | npm ERR! saltpad@ start: `node devServer.js`
saltpad_1   | npm ERR! Exit status 1
saltpad_1   | npm ERR! 
saltpad_1   | npm ERR! Failed at the saltpad@ start script 'node devServer.js'.
saltpad_1   | npm ERR! Make sure you have the latest version of node.js and npm installed.
saltpad_1   | npm ERR! If you do, this is most likely a problem with the saltpad package,
saltpad_1   | npm ERR! not with npm itself.
saltpad_1   | npm ERR! Tell the author that this fails on your system:
saltpad_1   | npm ERR!     node devServer.js
saltpad_1   | npm ERR! You can get information on how to open an issue for this project with:
saltpad_1   | npm ERR!     npm bugs saltpad
saltpad_1   | npm ERR! Or if that isn't available, you can get their info via:
saltpad_1   | npm ERR!     npm owner ls saltpad
saltpad_1   | npm ERR! There is likely additional logging output above.
saltpad_1   | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
saltpad_1   | 
saltpad_1   | npm ERR! Please include the following file with any support request:
saltpad_1   | npm ERR!     /usr/src/app/npm-debug.log
saltpad_saltpad_1 exited with code 1

Debug information:

cat /usr/src/app/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle saltpad@~prestart: saltpad@
6 silly lifecycle saltpad@~prestart: no script for prestart, continuing
7 info lifecycle saltpad@~start: saltpad@
8 verbose lifecycle saltpad@~start: unsafe-perm in lifecycle true
9 verbose lifecycle saltpad@~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/src/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle saltpad@~start: CWD: /usr/src/app
11 silly lifecycle saltpad@~start: Args: [ '-c', 'node devServer.js' ]
12 silly lifecycle saltpad@~start: Returned: code: 1  signal: null
13 info lifecycle saltpad@~start: Failed to exec start script
14 verbose stack Error: saltpad@ start: `node devServer.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid saltpad@
16 verbose cwd /usr/src/app
17 error Linux 4.7.0-1-amd64
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v6.5.0
20 error npm  v3.10.6
21 error code ELIFECYCLE
22 error saltpad@ start: `node devServer.js`
22 error Exit status 1
23 error Failed at the saltpad@ start script 'node devServer.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the saltpad package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node devServer.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs saltpad
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls saltpad
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

I've tried to update npm from version 3.10.3 to 3.10.6 but it did not help. So I've tried to install express manually:

npm install express
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/express
npm info addNameTag [ 'express', 'latest' ]
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/content-disposition
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/content-type
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/cookie-signature
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/accepts
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/array-flatten
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/depd
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/encodeurl
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/debug
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/escape-html
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/etag
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/cookie
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/fresh
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/finalhandler
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/merge-descriptors
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/parseurl
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/on-finished
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/methods
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/path-to-regexp
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/range-parser
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/proxy-addr
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/send
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/utils-merge
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/serve-static
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/qs
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/vary
npm info attempt registry request try #1 at 12:56:55 PM
npm http request GET https://registry.npmjs.org/type-is
npm http 304 https://registry.npmjs.org/content-disposition
npm http 304 https://registry.npmjs.org/cookie
npm http 304 https://registry.npmjs.org/content-type
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/encodeurl
npm http 304 https://registry.npmjs.org/merge-descriptors
npm http 304 https://registry.npmjs.org/parseurl
npm http 304 https://registry.npmjs.org/array-flatten
npm http 200 https://registry.npmjs.org/escape-html
npm http 304 https://registry.npmjs.org/cookie-signature
npm http 304 https://registry.npmjs.org/finalhandler
npm http 304 https://registry.npmjs.org/on-finished
npm http 304 https://registry.npmjs.org/path-to-regexp
npm http 304 https://registry.npmjs.org/etag
npm http 200 https://registry.npmjs.org/accepts
npm http 304 https://registry.npmjs.org/methods
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/send
npm http 304 https://registry.npmjs.org/serve-static
npm http 200 https://registry.npmjs.org/depd
npm http 200 https://registry.npmjs.org/range-parser
npm http 200 https://registry.npmjs.org/proxy-addr
npm http 200 https://registry.npmjs.org/type-is
npm http 304 https://registry.npmjs.org/fresh
npm http 200 https://registry.npmjs.org/utils-merge
npm http 304 https://registry.npmjs.org/vary
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/mime-types
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/negotiator
npm http 304 https://registry.npmjs.org/negotiator
npm http 304 https://registry.npmjs.org/mime-types
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/mime-db
npm http 304 https://registry.npmjs.org/mime-db
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/ms
npm http 304 https://registry.npmjs.org/ms
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/unpipe
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/statuses
npm http 304 https://registry.npmjs.org/statuses
npm http 200 https://registry.npmjs.org/unpipe
npm info attempt registry request try #1 at 12:57:00 PM
npm http request GET https://registry.npmjs.org/ee-first
npm http 304 https://registry.npmjs.org/ee-first
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/forwarded
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/ipaddr.js
npm http 304 https://registry.npmjs.org/ipaddr.js
npm http 304 https://registry.npmjs.org/forwarded
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/destroy
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/http-errors
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/destroy
npm http 200 https://registry.npmjs.org/mime
npm http 200 https://registry.npmjs.org/http-errors
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/setprototypeof
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/setprototypeof
npm http 200 https://registry.npmjs.org/inherits
npm info attempt registry request try #1 at 12:57:01 PM
npm http request GET https://registry.npmjs.org/media-typer
npm http 304 https://registry.npmjs.org/media-typer
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
saltpad@ /usr/src/app
`-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | `-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  `-- [email protected] 

npm WARN saltpad@ No license field.
npm info ok 

am I doing something wrong or missing something?

@onorua
Copy link
Author

onorua commented Sep 7, 2016

After following changes to package.json file

diff --git a/package.json b/package.json
index fad4a7b..d6efe22 100644
--- a/package.json
+++ b/package.json
@@ -17,11 +17,12 @@
     "urijs": "^1.17.0"
   },
   "devDependencies": {
-    "babel": "^5.6.14",
-    "babel-core": "^5.6.15",
+    "runtime": "^0.13.0",
+    "babel": "^5.8.38",
+    "babel-core": "^5.8.38",
     "babel-eslint": "^3.1.19",
     "babel-loader": "^5.2.2",
-    "babel-runtime": "",
+    "babel-runtime": "^6.11.6",
     "babel-plugin-react-transform": "^1.1.1",
     "babel-preset-es2015": "",
     "babel-preset-react": "",
@@ -29,9 +30,11 @@
     "es6-promise": "^2.3.0",
     "node-libs-browser": "^0.5.2",
     "node-uuid": "^1.4.3",
-    "react-transform-catch-errors": "^1.0.0",
-    "react-transform-hmr": "^1.0.1",
+    "react-transform-catch-errors": "^1.0.2",
+    "react-transform-hmr": "^1.0.4",
+    "react-transform": "^0.0.3",
     "redbox-react": "^1.2.0",
+    "react-tools": "^0.10.0",
     "react-bootstrap-table": "^1.4.0",
     "react-select": "1.0.0-beta8",
     "react-mixin": "",
@@ -49,10 +52,10 @@
     "bower": "",
     "moment": "",
     "rimraf": "^2.4.3",
-    "webpack": "",
-    "webpack-dev-middleware": "^1.2.0",
-    "webpack-hot-middleware": "^2.0.0",
-    "express": "",
+    "webpack": "^1.13.2",
+    "webpack-dev-middleware": "^1.6.1",
+    "webpack-hot-middleware": "^2.12.2",
+    "express": "^4.14.0",
     "form-urlencoded": "",
     "html-webpack-plugin": "",
     "extract-text-webpack-plugin": ">=1.0.1",

I've got container started up, but I still receive error message:

saltpad_1   | ERROR in Loader /usr/src/app/node_modules/babel/index.js?{"optional":["runtime"],"stage":0,"plugins":["react-transform"],"extra":{"react-transform":{"transforms":[{"transform":"react-transform-hmr","imports":["react"],"locals":["module"]},{"transform":"react-transform-catch-errors","imports":["react","redbox-react"]}]}}} didn't return a function
saltpad_1   |  @ multi main

My knowledge of nodejs is reaching the maximum, any help in how to debug or fix the issue will be highly appreciated!

P.S.
I've included diff instead of PR because solution is still not working properly, as soon as I'll get it working, I'll submit the PR.

@arthurzenika
Copy link
Contributor

Got hit by this too. Maybe it's the version of node that needs to be adjusted. I see no requirements version for node or npm in the docs.

@Lothiraldan do you have an idea ?

@arthurzenika
Copy link
Contributor

With node 4.6.0 it can't build :

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.8
npm ERR! peerinvalid Peer [email protected] wants react@^15.3.2
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.3

@arthurzenika
Copy link
Contributor

npm-check-updates :

screenshot_2016-10-05_12-24-26

@arthurzenika
Copy link
Contributor

trying out https://github.com/peerigon/updtr

@arthurzenika
Copy link
Contributor

I managed to build it with

-    "react-addons-linked-state-mixin": "",
+    "react-addons-linked-state-mixin": "^0.14.5",

but then I get another error (see next issue)

@geraldhansen
Copy link

I've been running into the same problems with a new Ubuntu installation:

npm ERR! Linux 4.8.0-27-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.6.1
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.8
npm ERR! peerinvalid Peer [email protected] wants react@^15.4.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.3

Any suggestions?

@valentin2105
Copy link

Any fix out there ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants