Skip to content

mac에서 동작하지않습니다. #1

@sujkh85

Description

@sujkh85

[email protected] install /Users/sujkh/dev/test/algorithm-fighter-server/node_modules/fsevents
node install

[fsevents] Success: "/Users/sujkh/dev/test/algorithm-fighter-server/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

[email protected] postinstall /Users/sujkh/dev/test/algorithm-fighter-server/node_modules/node-cron
opencollective-postinstall

Thank you for using node-cron!
If you rely on this package, please consider supporting our open collective:

https://opencollective.com/node-cron/donate

[email protected] postinstall /Users/sujkh/dev/test/algorithm-fighter-server/node_modules/nodemon
node bin/postinstall || exit 0

Love nodemon? You can now support the project via the open collective:

https://opencollective.com/nodemon/donate

added 463 packages from 712 contributors and audited 2610 packages in 6.345s
found 0 vulnerabilities

jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$ npm run start

[email protected] start /Users/sujkh/dev/test/algorithm-fighter-server
node ./bin/www

/Users/sujkh/dev/test/algorithm-fighter-server/socket/index.js:104
const matchPartner = onUsers.splice(_.findIndex(onUsers, client => client.socketId === socket.id), 1)[0];
^

SyntaxError: Identifier 'matchPartner' has already been declared
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/Users/sujkh/dev/test/algorithm-fighter-server/bin/www:25:25)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sujkh/.npm/_logs/2018-11-22T01_00_12_159Z-debug.log
jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$ vi package
jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$ vi package.json
jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$ npm run dev

[email protected] dev /Users/sujkh/dev/test/algorithm-fighter-server
NODE_ENV=development nodemon ./bin/www

[nodemon] 1.18.4
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node ./bin/www
/Users/sujkh/dev/test/algorithm-fighter-server/socket/index.js:104
const matchPartner = onUsers.splice(_.findIndex(onUsers, client => client.socketId === socket.id), 1)[0];
^

SyntaxError: Identifier 'matchPartner' has already been declared
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/Users/sujkh/dev/test/algorithm-fighter-server/bin/www:25:25)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
[nodemon] app crashed - waiting for file changes before starting...
^C
jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$
jeong-gyeonghwan-ui-MacBook-Pro:algorithm-fighter-server sujkh$ npm i
audited 2610 packages in 3.313s
found 0 vulnerabilities

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions