FastFlowDebate / FastFlow

Flowing and filing system for highschool debate
http://fastflowdebate.com
Apache License 2.0
8 stars 1 forks source link

Err Npm install main folder. #59

Closed towicode closed 8 years ago

towicode commented 8 years ago

I get the below error when running npm install in the main folder.

FastFlow@0.8.0 postinstall /home/todd/debateflow install-app-deps

/home/todd/debateflow/node_modules/electron-builder/out/install-app-deps.js:5
const util_1 = require("./util/util");
^^^^^
SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

npm ERR! Linux 4.2.0-38-generic
npm ERR! argv "/home/todd/.nvm/versions/node/v0.12.10/bin/node" "/home/todd/.nvm/versions/node/v0.12.10/bin/npm" "install"
npm ERR! node v0.12.10
npm ERR! npm  v2.14.9
npm ERR! code ELIFECYCLE
npm ERR! FastFlow@0.8.0 postinstall: `install-app-deps`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the FastFlow@0.8.0 postinstall script 'install-app-deps'.
npm ERR! This is most likely a problem with the FastFlow package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     install-app-deps
npm ERR! You can get their info via:
npm ERR!     npm owner ls FastFlow
npm ERR! There is likely additional logging output above.
adamtowerz commented 8 years ago

try running npm setup, the post-install script is mainly for installing on CI and during the build process ATM (this does need to be better documented and I'll get that done as soon as the build and setup process is finalized with version 1.0.0)

towicode commented 8 years ago

doing npm run setup gives a very similar error, seems like it still runs the post-install.

Here is the npm-debug log not sure if it helps.

0 info it worked if it ends with ok
1 verbose cli [ '/home/todd/.nvm/versions/node/v0.12.10/bin/node',
1 verbose cli   '/home/todd/.nvm/versions/node/v0.12.10/bin/npm',
1 verbose cli   'run',
1 verbose cli   'setup' ]
2 info using npm@2.14.9
3 info using node@v0.12.10
4 verbose run-script [ 'presetup', 'setup', 'postsetup' ]
5 info presetup FastFlow@0.8.0
6 info setup FastFlow@0.8.0
7 verbose unsafe-perm in lifecycle true
8 info FastFlow@0.8.0 Failed to exec setup script
9 verbose stack Error: FastFlow@0.8.0 setup: `npm install && cd app && npm install && bower install`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/home/todd/.nvm/versions/node/v0.12.10/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/home/todd/.nvm/versions/node/v0.12.10/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1016:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
10 verbose pkgid FastFlow@0.8.0
11 verbose cwd /home/todd/debateflow
12 error Linux 4.2.0-38-generic
13 error argv "/home/todd/.nvm/versions/node/v0.12.10/bin/node" "/home/todd/.nvm/versions/node/v0.12.10/bin/npm" "run" "setup"
14 error node v0.12.10
15 error npm  v2.14.9
16 error code ELIFECYCLE
17 error FastFlow@0.8.0 setup: `npm install && cd app && npm install && bower install`
17 error Exit status 1
18 error Failed at the FastFlow@0.8.0 setup script 'npm install && cd app && npm install && bower install'.
18 error This is most likely a problem with the FastFlow package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     npm install && cd app && npm install && bower install
18 error You can get their info via:
18 error     npm owner ls FastFlow
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
adamtowerz commented 8 years ago
git clone [git url]
npm run setup
npm run start 

works for me in my Mac, waiting for @isaaclo123 for a bug report on his linux computer.

Some more info: Install-app-deps is an electron-builder script (link here) and what it does is effectively npm install in the app folder, which is already done by npm setup. Try doing npm run start and see if anything happens (99% it pulls another error, but worth a try)

isaaclo123 commented 8 years ago

Hello, @towicode . Things appear to be working fine on my debian linux computer, even when I got a fresh clone. Could you first please tell me the steps of what you did to run FastFlow?

Try running the command "node" in your terminal. If the node binary doesn't exist, you may have to symlink nodejs to node to get it to run. Otherwise, try updating nodejs and npm.

towicode commented 8 years ago

I have node, you can see the version in the error message. Gonna try again on a different computer.

towicode commented 8 years ago

These are the steps I did.

mkdir flow cd flow git clone "..." . nvm install v0.12.15 npm install -> error npm run setup -> error npm run start -> error

npm ERR! Linux 3.4.0+
npm ERR! argv "/home/todd/.nvm/versions/node/v0.12.15/bin/node" "/home/todd/.nvm/versions/node/v0.12.15/bin/npm" "install"
npm ERR! node v0.12.15
npm ERR! npm  v2.15.1
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! FastFlow@0.8.0 postinstall: `install-app-deps`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the FastFlow@0.8.0 postinstall script 'install-app-deps'.
npm ERR! This is most likely a problem with the FastFlow package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     install-app-deps
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs FastFlow
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls FastFlow
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
isaaclo123 commented 8 years ago

Update your node and npm. I am running npm version 3.10.6 and nodejs version 4.4.7. Your nodejs version is 0.12.15 and the npm 2.15.1.

towicode commented 8 years ago

Was able to get it to work with version 4.4.7