du@du-T6-3:
~/code/project/weixin/electronic-wechat
$sudo npm install
loadDep:sanitize-filename ▀ ╢█████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
> nodejieba@2.2.4 install /home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba
> node-gyp rebuild
make: Entering directory '/home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba/build'
CXX(target) Release/obj.target/nodejieba/lib/index.o
CXX(target) Release/obj.target/nodejieba/lib/nodejieba.o
SOLINK_MODULE(target) Release/obj.target/nodejieba.node
COPY Release/nodejieba.node
make: Leaving directory '/home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba/build'
npm WARN lifecycle electron@1.4.15~postinstall: cannot run in wd %s %s (wd=%s) electron@1.4.15 node install.js /home/du/code/project/weixin/electronic-wechat/node_modules/electron
electronic-wechat@2.0.0 /home/du/code/project/weixin/electronic-wechat
├─┬ babel-eslint@7.2.3
│ ├─┬ babel-code-frame@6.22.0
│ │ └── js-tokens@3.0.1
│ ├─┬ babel-traverse@6.24.1
│ │ ├── babel-messages@6.23.0
│ │ ├─┬ babel-runtime@6.23.0
│ │ │ ├── core-js@2.4.1
│ │ │ └── regenerator-runtime@0.10.5
│ │ └─┬ invariant@2.2.2
│ │ └── loose-envify@1.3.1
│ ├─┬ babel-types@6.24.1
│ │ └── to-fast-properties@1.0.3
│ └── babylon@6.17.0
├─┬ electron@1.4.15
│ ├─┬ electron-download@3.3.0
│ │ ├─┬ fs-extra@0.30.0
│ │ │ ├── jsonfile@2.4.0
│ │ │ ├── klaw@1.3.1
│ │ │ └── rimraf@2.6.1
│ │ ├── home-path@1.0.5
│ │ ├─┬ nugget@2.0.1
│ │ │ ├─┬ pretty-bytes@1.0.4
│ │ │ │ ├── get-stdin@4.0.1
│ │ │ │ └─┬ meow@3.7.0
│ │ │ │ ├── camelcase-keys@2.1.0
│ │ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ │ └── array-find-index@1.0.2
│ │ │ │ │ └── signal-exit@3.0.2
│ │ │ │ ├── map-obj@1.0.1
│ │ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ │ │ └── is-utf8@0.2.1
│ │ │ │ │ └── path-type@1.1.0
│ │ │ │ ├─┬ redent@1.0.0
│ │ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ │ └── is-finite@1.0.2
│ │ │ │ │ └── strip-indent@1.0.1
│ │ │ │ └── trim-newlines@1.0.0
│ │ │ ├─┬ progress-stream@1.2.0
│ │ │ │ ├── speedometer@0.1.4
│ │ │ │ └─┬ through2@0.2.3
│ │ │ │ └─┬ xtend@2.1.2
│ │ │ │ └── object-keys@0.4.0
│ │ │ ├─┬ request@2.81.0
│ │ │ │ ├── aws-sign2@0.6.0
│ │ │ │ ├── aws4@1.6.0
│ │ │ │ ├── caseless@0.12.0
│ │ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ │ └── delayed-stream@1.0.0
│ │ │ │ ├── extend@3.0.1
│ │ │ │ ├── forever-agent@0.6.1
│ │ │ │ ├─┬ form-data@2.1.4
│ │ │ │ │ └── asynckit@0.4.0
│ │ │ │ ├─┬ har-validator@4.2.1
│ │ │ │ │ └── har-schema@1.0.5
│ │ │ │ ├─┬ hawk@3.1.3
│ │ │ │ │ ├── boom@2.10.1
│ │ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ │ ├── hoek@2.16.3
│ │ │ │ │ └── sntp@1.0.9
│ │ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ │ ├─┬ jsprim@1.4.0
│ │ │ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ │ ├── json-schema@0.2.3
│ │ │ │ │ │ └── verror@1.3.6
│ │ │ │ │ └─┬ sshpk@1.13.0
│ │ │ │ │ ├── asn1@0.2.3
│ │ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ │ ├── bcrypt-pbkdf@1.0.1
│ │ │ │ │ ├─┬ dashdash@1.14.1
│ │ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ │ ├─┬ getpass@0.1.7
│ │ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ │ ├── jsbn@0.1.1
│ │ │ │ │ └── tweetnacl@0.14.5
│ │ │ │ ├── is-typedarray@1.0.0
│ │ │ │ ├── isstream@0.1.2
│ │ │ │ ├── json-stringify-safe@5.0.1
│ │ │ │ ├─┬ mime-types@2.1.15
│ │ │ │ │ └── mime-db@1.27.0
│ │ │ │ ├── oauth-sign@0.8.2
│ │ │ │ ├── performance-now@0.2.0
│ │ │ │ ├── qs@6.4.0
│ │ │ │ ├── safe-buffer@5.0.1
│ │ │ │ ├── stringstream@0.0.5
│ │ │ │ ├─┬ tough-cookie@2.3.2
│ │ │ │ │ └── punycode@1.4.1
│ │ │ │ ├── tunnel-agent@0.6.0
│ │ │ │ └── uuid@3.0.1
│ │ │ ├── single-line-log@1.1.2
│ │ │ └── throttleit@0.0.2
│ │ ├─┬ path-exists@2.1.0
│ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ └── pinkie@2.0.4
│ │ ├─┬ rc@1.2.1
│ │ │ └── deep-extend@0.4.1
│ │ └─┬ sumchecker@1.3.1
│ │ └── es6-promise@4.1.0
│ └─┬ extract-zip@1.6.5
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ └─┬ yauzl@2.4.1
│ └─┬ fd-slicer@1.0.1
│ └── pend@1.2.0
├─┬ electron-localshortcut@1.1.0
│ └── electron-is-accelerator@0.1.2
├─┬ electron-packager@8.7.0
│ ├─┬ asar@0.13.0
│ │ ├── chromium-pickle-js@0.2.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├── cuint@0.2.2
│ │ ├── glob@6.0.4
│ │ ├─┬ mksnapshot@0.3.1
│ │ │ ├─┬ decompress-zip@0.3.0
│ │ │ │ ├─┬ binary@0.3.0
│ │ │ │ │ ├── buffers@0.1.1
│ │ │ │ │ └─┬ chainsaw@0.1.0
│ │ │ │ │ └── traverse@0.3.9
│ │ │ │ ├── mkpath@0.1.0
│ │ │ │ ├─┬ nopt@3.0.6
│ │ │ │ │ └── abbrev@1.1.0
│ │ │ │ ├── q@1.5.0
│ │ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ │ ├── isarray@0.0.1
│ │ │ │ │ └── string_decoder@0.10.31
│ │ │ │ └─┬ touch@0.0.3
│ │ │ │ └── nopt@1.0.10
│ │ │ └── fs-extra@0.26.7
│ │ └─┬ tmp@0.0.28
│ │ └── os-tmpdir@1.0.2
│ ├─┬ debug@2.6.6
│ │ └── ms@0.7.3
│ ├─┬ electron-download@4.0.0
│ │ ├── fs-extra@2.1.2
│ │ ├── path-exists@3.0.0
│ │ └── sumchecker@2.0.2
│ ├─┬ electron-osx-sign@0.4.4
│ │ ├── bluebird@3.5.0
│ │ ├── compare-version@0.1.2
│ │ ├── isbinaryfile@3.0.2
│ │ └─┬ tempfile@1.1.1
│ │ └── uuid@2.0.3
│ ├─┬ fs-extra@3.0.0
│ │ ├── graceful-fs@4.1.11
│ │ ├── jsonfile@3.0.0
│ │ └── universalify@0.1.0
│ ├─┬ get-package-info@1.0.0
│ │ ├── lodash.get@4.4.2
│ │ └─┬ read-pkg-up@2.0.0
│ │ ├─┬ find-up@2.1.0
│ │ │ └─┬ locate-path@2.0.0
│ │ │ ├─┬ p-locate@2.0.0
│ │ │ │ └── p-limit@1.1.0
│ │ │ └── path-exists@3.0.0
│ │ └─┬ read-pkg@2.0.0
│ │ ├─┬ load-json-file@2.0.0
│ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ └─┬ error-ex@1.3.1
│ │ │ │ └── is-arrayish@0.2.1
│ │ │ └── strip-bom@3.0.0
│ │ ├─┬ normalize-package-data@2.3.8
│ │ │ ├── hosted-git-info@2.4.2
│ │ │ ├── is-builtin-module@1.0.0
│ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ └── spdx-expression-parse@1.0.4
│ │ └── path-type@2.0.0
│ ├── minimist@1.2.0
│ ├─┬ plist@2.0.1
│ │ ├── base64-js@1.1.2
│ │ ├── xmlbuilder@8.2.2
│ │ └── xmldom@0.1.27
│ ├── rcedit@0.9.0
│ ├─┬ resolve@1.3.3
│ │ └── path-parse@1.0.5
│ ├── run-series@1.1.4
│ ├─┬ sanitize-filename@1.6.1
│ │ └─┬ truncate-utf8-bytes@1.0.2
│ │ └── utf8-byte-length@1.0.4
│ └── semver@5.3.0
├── emojione@2.2.7
├─┬ eslint@3.19.0
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├── has-ansi@2.0.0
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├─┬ concat-stream@1.6.0
│ │ ├── inherits@2.0.3
│ │ ├─┬ readable-stream@2.2.9
│ │ │ ├── buffer-shims@1.0.0
│ │ │ ├── core-util-is@1.0.2
│ │ │ ├── isarray@1.0.0
│ │ │ ├── process-nextick-args@1.0.7
│ │ │ ├── string_decoder@1.0.0
│ │ │ └── util-deprecate@1.0.2
│ │ └── typedarray@0.0.6
│ ├─┬ doctrine@2.0.0
│ │ └── isarray@1.0.0
│ ├─┬ escope@3.6.0
│ │ ├─┬ es6-map@0.1.5
│ │ │ ├── d@1.0.0
│ │ │ ├── es5-ext@0.10.15
│ │ │ ├── es6-iterator@2.0.1
│ │ │ ├── es6-set@0.1.5
│ │ │ ├── es6-symbol@3.1.1
│ │ │ └── event-emitter@0.3.5
│ │ ├── es6-weak-map@2.0.2
│ │ └─┬ esrecurse@4.1.0
│ │ └── estraverse@4.1.1
│ ├─┬ espree@3.4.2
│ │ ├── acorn@5.0.3
│ │ └─┬ acorn-jsx@3.0.1
│ │ └── acorn@3.3.0
│ ├── esquery@1.0.0
│ ├── estraverse@4.2.0
│ ├── esutils@2.0.2
│ ├─┬ file-entry-cache@2.0.0
│ │ └─┬ flat-cache@1.2.2
│ │ ├── circular-json@0.3.1
│ │ ├─┬ del@2.2.2
│ │ │ ├─┬ globby@5.0.0
│ │ │ │ ├─┬ array-union@1.0.2
│ │ │ │ │ └── array-uniq@1.0.3
│ │ │ │ └── arrify@1.0.1
│ │ │ ├── is-path-cwd@1.0.0
│ │ │ ├─┬ is-path-in-cwd@1.0.0
│ │ │ │ └── is-path-inside@1.0.0
│ │ │ └── pify@2.3.0
│ │ └─┬ write@0.2.1
│ │ └─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ glob@7.1.1
│ │ ├── fs.realpath@1.0.0
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.1
│ ├── globals@9.17.0
│ ├── ignore@3.3.0
│ ├── imurmurhash@0.1.4
│ ├─┬ inquirer@0.12.0
│ │ ├── ansi-escapes@1.4.0
│ │ ├── ansi-regex@2.1.1
│ │ ├─┬ cli-cursor@1.0.2
│ │ │ └─┬ restore-cursor@1.0.1
│ │ │ ├── exit-hook@1.1.1
│ │ │ └── onetime@1.1.0
│ │ ├── cli-width@2.1.0
│ │ ├── figures@1.7.0
│ │ ├─┬ readline2@1.0.1
│ │ │ ├── code-point-at@1.1.0
│ │ │ ├─┬ is-fullwidth-code-point@1.0.0
│ │ │ │ └── number-is-nan@1.0.1
│ │ │ └── mute-stream@0.0.5
│ │ ├── run-async@0.1.0
│ │ ├── rx-lite@3.1.2
│ │ ├── string-width@1.0.2
│ │ └── through@2.3.8
│ ├─┬ is-my-json-valid@2.16.0
│ │ ├── generate-function@2.0.0
│ │ ├─┬ generate-object-property@1.2.0
│ │ │ └── is-property@1.0.2
│ │ ├── jsonpointer@4.0.1
│ │ └── xtend@4.0.1
│ ├─┬ is-resolvable@1.0.0
│ │ └── tryit@1.0.3
│ ├─┬ js-yaml@3.8.3
│ │ ├─┬ argparse@1.0.9
│ │ │ └── sprintf-js@1.0.3
│ │ └── esprima@3.1.3
│ ├─┬ json-stable-stringify@1.0.1
│ │ └── jsonify@0.0.0
│ ├─┬ levn@0.3.0
│ │ ├── prelude-ls@1.1.2
│ │ └── type-check@0.3.2
│ ├── lodash@4.17.4
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ ├── natural-compare@1.4.0
│ ├─┬ optionator@0.8.2
│ │ ├── deep-is@0.1.3
│ │ ├── fast-levenshtein@2.0.6
│ │ └── wordwrap@1.0.0
│ ├── path-is-inside@1.0.2
│ ├── pluralize@1.2.1
│ ├── progress@1.1.8
│ ├─┬ require-uncached@1.0.3
│ │ ├─┬ caller-path@0.1.0
│ │ │ └── callsites@0.2.0
│ │ └── resolve-from@1.0.1
│ ├─┬ shelljs@0.7.7
│ │ ├── interpret@1.0.3
│ │ └── rechoir@0.6.2
│ ├── strip-bom@3.0.0
│ ├── strip-json-comments@2.0.1
│ ├─┬ table@3.8.3
│ │ ├─┬ ajv@4.11.8
│ │ │ └── co@4.6.0
│ │ ├── ajv-keywords@1.5.1
│ │ ├── slice-ansi@0.0.4
│ │ └─┬ string-width@2.0.0
│ │ └── is-fullwidth-code-point@2.0.0
│ ├── text-table@0.2.0
│ └─┬ user-home@2.0.0
│ └── os-homedir@1.0.2
├─┬ eslint-config-airbnb@14.1.0
│ └── eslint-config-airbnb-base@11.1.3
├─┬ eslint-plugin-import@2.2.0
│ ├── builtin-modules@1.1.1
│ ├── contains-path@0.1.0
│ ├─┬ doctrine@1.5.0
│ │ └── isarray@1.0.0
│ ├── eslint-import-resolver-node@0.2.3
│ ├─┬ eslint-module-utils@2.0.0
│ │ ├─┬ debug@2.2.0
│ │ │ └── ms@0.7.1
│ │ └── pkg-dir@1.0.0
│ ├─┬ has@1.0.1
│ │ └── function-bind@1.1.0
│ ├── lodash.cond@4.5.2
│ ├─┬ minimatch@3.0.3
│ │ └─┬ brace-expansion@1.1.7
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ └─┬ pkg-up@1.0.0
│ └── find-up@1.1.2
├─┬ eslint-plugin-jsx-a11y@4.0.0
│ ├── aria-query@0.3.0
│ ├── ast-types-flow@0.0.7
│ ├── damerau-levenshtein@1.0.4
│ ├── emoji-regex@6.4.2
│ ├── jsx-ast-utils@1.4.1
│ └── object-assign@4.1.1
├─┬ eslint-plugin-react@6.10.3
│ ├─┬ array.prototype.find@2.0.4
│ │ ├─┬ define-properties@1.1.2
│ │ │ ├── foreach@2.0.5
│ │ │ └── object-keys@1.0.11
│ │ └─┬ es-abstract@1.7.0
│ │ ├─┬ es-to-primitive@1.1.1
│ │ │ ├── is-date-object@1.0.1
│ │ │ └── is-symbol@1.0.1
│ │ ├── is-callable@1.1.3
│ │ └── is-regex@1.0.4
│ ├─┬ doctrine@1.5.0
│ │ └── isarray@1.0.0
│ └─┬ object.assign@4.0.4
│ └── object-keys@1.0.11
├─┬ nconf@0.8.4
│ ├── async@1.5.2
│ ├── ini@1.3.4
│ ├── secure-keys@1.0.0
│ └─┬ yargs@3.32.0
│ ├── camelcase@2.1.1
│ ├─┬ cliui@3.2.0
│ │ └── wrap-ansi@2.1.0
│ ├── decamelize@1.2.0
│ ├─┬ os-locale@1.4.0
│ │ └─┬ lcid@1.0.0
│ │ └── invert-kv@1.0.0
│ ├── window-size@0.1.4
│ └── y18n@3.2.1
└─┬ pinyin@2.8.3
├─┬ commander@1.1.1
│ └── keypress@0.1.0
└─┬ nodejieba@2.2.4
└── nan@2.3.5
du@du-T6-3:
~/code/project/weixin/electronic-wechat
$sudo npm start
[sudo] du 的密码:
> electronic-wechat@2.0.0 start /home/du/code/project/weixin/electronic-wechat
> electron src/main.js
/home/du/code/project/weixin/electronic-wechat/node_modules/electron/index.js:9
throw new Error('Electron failed to install correctly, please delete node_modules/' + path.basename(__dirname) + ' and try installing again')
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.<anonymous> (/home/du/code/project/weixin/electronic-wechat/node_modules/electron/index.js:9:9)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/du/code/project/weixin/electronic-wechat/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! electronic-wechat@2.0.0 start: `electron src/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electronic-wechat@2.0.0 start script 'electron src/main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electronic-wechat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron src/main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electronic-wechat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electronic-wechat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/du/code/project/weixin/electronic-wechat/npm-debug.log
~/code/project/weixin/electronic-wechat
$sudo npm install
loadDep:sanitize-filename ▀ ╢█████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
> nodejieba@2.2.4 install /home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba
> node-gyp rebuild
make: Entering directory '/home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba/build'
CXX(target) Release/obj.target/nodejieba/lib/index.o
CXX(target) Release/obj.target/nodejieba/lib/nodejieba.o
SOLINK_MODULE(target) Release/obj.target/nodejieba.node
COPY Release/nodejieba.node
make: Leaving directory '/home/du/code/project/weixin/electronic-wechat/node_modules/nodejieba/build'
npm WARN lifecycle electron@1.4.15~postinstall: cannot run in wd %s %s (wd=%s) electron@1.4.15 node install.js /home/du/code/project/weixin/electronic-wechat/node_modules/electron
electronic-wechat@2.0.0 /home/du/code/project/weixin/electronic-wechat
├─┬ babel-eslint@7.2.3
│ ├─┬ babel-code-frame@6.22.0
│ │ └── js-tokens@3.0.1
│ ├─┬ babel-traverse@6.24.1
│ │ ├── babel-messages@6.23.0
│ │ ├─┬ babel-runtime@6.23.0
│ │ │ ├── core-js@2.4.1
│ │ │ └── regenerator-runtime@0.10.5
│ │ └─┬ invariant@2.2.2
│ │ └── loose-envify@1.3.1
│ ├─┬ babel-types@6.24.1
│ │ └── to-fast-properties@1.0.3
│ └── babylon@6.17.0
├─┬ electron@1.4.15
│ ├─┬ electron-download@3.3.0
│ │ ├─┬ fs-extra@0.30.0
│ │ │ ├── jsonfile@2.4.0
│ │ │ ├── klaw@1.3.1
│ │ │ └── rimraf@2.6.1
│ │ ├── home-path@1.0.5
│ │ ├─┬ nugget@2.0.1
│ │ │ ├─┬ pretty-bytes@1.0.4
│ │ │ │ ├── get-stdin@4.0.1
│ │ │ │ └─┬ meow@3.7.0
│ │ │ │ ├── camelcase-keys@2.1.0
│ │ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ │ └── array-find-index@1.0.2
│ │ │ │ │ └── signal-exit@3.0.2
│ │ │ │ ├── map-obj@1.0.1
│ │ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ │ │ └── is-utf8@0.2.1
│ │ │ │ │ └── path-type@1.1.0
│ │ │ │ ├─┬ redent@1.0.0
│ │ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ │ └── is-finite@1.0.2
│ │ │ │ │ └── strip-indent@1.0.1
│ │ │ │ └── trim-newlines@1.0.0
│ │ │ ├─┬ progress-stream@1.2.0
│ │ │ │ ├── speedometer@0.1.4
│ │ │ │ └─┬ through2@0.2.3
│ │ │ │ └─┬ xtend@2.1.2
│ │ │ │ └── object-keys@0.4.0
│ │ │ ├─┬ request@2.81.0
│ │ │ │ ├── aws-sign2@0.6.0
│ │ │ │ ├── aws4@1.6.0
│ │ │ │ ├── caseless@0.12.0
│ │ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ │ └── delayed-stream@1.0.0
│ │ │ │ ├── extend@3.0.1
│ │ │ │ ├── forever-agent@0.6.1
│ │ │ │ ├─┬ form-data@2.1.4
│ │ │ │ │ └── asynckit@0.4.0
│ │ │ │ ├─┬ har-validator@4.2.1
│ │ │ │ │ └── har-schema@1.0.5
│ │ │ │ ├─┬ hawk@3.1.3
│ │ │ │ │ ├── boom@2.10.1
│ │ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ │ ├── hoek@2.16.3
│ │ │ │ │ └── sntp@1.0.9
│ │ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ │ ├─┬ jsprim@1.4.0
│ │ │ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ │ ├── json-schema@0.2.3
│ │ │ │ │ │ └── verror@1.3.6
│ │ │ │ │ └─┬ sshpk@1.13.0
│ │ │ │ │ ├── asn1@0.2.3
│ │ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ │ ├── bcrypt-pbkdf@1.0.1
│ │ │ │ │ ├─┬ dashdash@1.14.1
│ │ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ │ ├─┬ getpass@0.1.7
│ │ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ │ ├── jsbn@0.1.1
│ │ │ │ │ └── tweetnacl@0.14.5
│ │ │ │ ├── is-typedarray@1.0.0
│ │ │ │ ├── isstream@0.1.2
│ │ │ │ ├── json-stringify-safe@5.0.1
│ │ │ │ ├─┬ mime-types@2.1.15
│ │ │ │ │ └── mime-db@1.27.0
│ │ │ │ ├── oauth-sign@0.8.2
│ │ │ │ ├── performance-now@0.2.0
│ │ │ │ ├── qs@6.4.0
│ │ │ │ ├── safe-buffer@5.0.1
│ │ │ │ ├── stringstream@0.0.5
│ │ │ │ ├─┬ tough-cookie@2.3.2
│ │ │ │ │ └── punycode@1.4.1
│ │ │ │ ├── tunnel-agent@0.6.0
│ │ │ │ └── uuid@3.0.1
│ │ │ ├── single-line-log@1.1.2
│ │ │ └── throttleit@0.0.2
│ │ ├─┬ path-exists@2.1.0
│ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ └── pinkie@2.0.4
│ │ ├─┬ rc@1.2.1
│ │ │ └── deep-extend@0.4.1
│ │ └─┬ sumchecker@1.3.1
│ │ └── es6-promise@4.1.0
│ └─┬ extract-zip@1.6.5
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ └─┬ yauzl@2.4.1
│ └─┬ fd-slicer@1.0.1
│ └── pend@1.2.0
├─┬ electron-localshortcut@1.1.0
│ └── electron-is-accelerator@0.1.2
├─┬ electron-packager@8.7.0
│ ├─┬ asar@0.13.0
│ │ ├── chromium-pickle-js@0.2.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├── cuint@0.2.2
│ │ ├── glob@6.0.4
│ │ ├─┬ mksnapshot@0.3.1
│ │ │ ├─┬ decompress-zip@0.3.0
│ │ │ │ ├─┬ binary@0.3.0
│ │ │ │ │ ├── buffers@0.1.1
│ │ │ │ │ └─┬ chainsaw@0.1.0
│ │ │ │ │ └── traverse@0.3.9
│ │ │ │ ├── mkpath@0.1.0
│ │ │ │ ├─┬ nopt@3.0.6
│ │ │ │ │ └── abbrev@1.1.0
│ │ │ │ ├── q@1.5.0
│ │ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ │ ├── isarray@0.0.1
│ │ │ │ │ └── string_decoder@0.10.31
│ │ │ │ └─┬ touch@0.0.3
│ │ │ │ └── nopt@1.0.10
│ │ │ └── fs-extra@0.26.7
│ │ └─┬ tmp@0.0.28
│ │ └── os-tmpdir@1.0.2
│ ├─┬ debug@2.6.6
│ │ └── ms@0.7.3
│ ├─┬ electron-download@4.0.0
│ │ ├── fs-extra@2.1.2
│ │ ├── path-exists@3.0.0
│ │ └── sumchecker@2.0.2
│ ├─┬ electron-osx-sign@0.4.4
│ │ ├── bluebird@3.5.0
│ │ ├── compare-version@0.1.2
│ │ ├── isbinaryfile@3.0.2
│ │ └─┬ tempfile@1.1.1
│ │ └── uuid@2.0.3
│ ├─┬ fs-extra@3.0.0
│ │ ├── graceful-fs@4.1.11
│ │ ├── jsonfile@3.0.0
│ │ └── universalify@0.1.0
│ ├─┬ get-package-info@1.0.0
│ │ ├── lodash.get@4.4.2
│ │ └─┬ read-pkg-up@2.0.0
│ │ ├─┬ find-up@2.1.0
│ │ │ └─┬ locate-path@2.0.0
│ │ │ ├─┬ p-locate@2.0.0
│ │ │ │ └── p-limit@1.1.0
│ │ │ └── path-exists@3.0.0
│ │ └─┬ read-pkg@2.0.0
│ │ ├─┬ load-json-file@2.0.0
│ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ └─┬ error-ex@1.3.1
│ │ │ │ └── is-arrayish@0.2.1
│ │ │ └── strip-bom@3.0.0
│ │ ├─┬ normalize-package-data@2.3.8
│ │ │ ├── hosted-git-info@2.4.2
│ │ │ ├── is-builtin-module@1.0.0
│ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ └── spdx-expression-parse@1.0.4
│ │ └── path-type@2.0.0
│ ├── minimist@1.2.0
│ ├─┬ plist@2.0.1
│ │ ├── base64-js@1.1.2
│ │ ├── xmlbuilder@8.2.2
│ │ └── xmldom@0.1.27
│ ├── rcedit@0.9.0
│ ├─┬ resolve@1.3.3
│ │ └── path-parse@1.0.5
│ ├── run-series@1.1.4
│ ├─┬ sanitize-filename@1.6.1
│ │ └─┬ truncate-utf8-bytes@1.0.2
│ │ └── utf8-byte-length@1.0.4
│ └── semver@5.3.0
├── emojione@2.2.7
├─┬ eslint@3.19.0
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├── has-ansi@2.0.0
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├─┬ concat-stream@1.6.0
│ │ ├── inherits@2.0.3
│ │ ├─┬ readable-stream@2.2.9
│ │ │ ├── buffer-shims@1.0.0
│ │ │ ├── core-util-is@1.0.2
│ │ │ ├── isarray@1.0.0
│ │ │ ├── process-nextick-args@1.0.7
│ │ │ ├── string_decoder@1.0.0
│ │ │ └── util-deprecate@1.0.2
│ │ └── typedarray@0.0.6
│ ├─┬ doctrine@2.0.0
│ │ └── isarray@1.0.0
│ ├─┬ escope@3.6.0
│ │ ├─┬ es6-map@0.1.5
│ │ │ ├── d@1.0.0
│ │ │ ├── es5-ext@0.10.15
│ │ │ ├── es6-iterator@2.0.1
│ │ │ ├── es6-set@0.1.5
│ │ │ ├── es6-symbol@3.1.1
│ │ │ └── event-emitter@0.3.5
│ │ ├── es6-weak-map@2.0.2
│ │ └─┬ esrecurse@4.1.0
│ │ └── estraverse@4.1.1
│ ├─┬ espree@3.4.2
│ │ ├── acorn@5.0.3
│ │ └─┬ acorn-jsx@3.0.1
│ │ └── acorn@3.3.0
│ ├── esquery@1.0.0
│ ├── estraverse@4.2.0
│ ├── esutils@2.0.2
│ ├─┬ file-entry-cache@2.0.0
│ │ └─┬ flat-cache@1.2.2
│ │ ├── circular-json@0.3.1
│ │ ├─┬ del@2.2.2
│ │ │ ├─┬ globby@5.0.0
│ │ │ │ ├─┬ array-union@1.0.2
│ │ │ │ │ └── array-uniq@1.0.3
│ │ │ │ └── arrify@1.0.1
│ │ │ ├── is-path-cwd@1.0.0
│ │ │ ├─┬ is-path-in-cwd@1.0.0
│ │ │ │ └── is-path-inside@1.0.0
│ │ │ └── pify@2.3.0
│ │ └─┬ write@0.2.1
│ │ └─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ glob@7.1.1
│ │ ├── fs.realpath@1.0.0
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.1
│ ├── globals@9.17.0
│ ├── ignore@3.3.0
│ ├── imurmurhash@0.1.4
│ ├─┬ inquirer@0.12.0
│ │ ├── ansi-escapes@1.4.0
│ │ ├── ansi-regex@2.1.1
│ │ ├─┬ cli-cursor@1.0.2
│ │ │ └─┬ restore-cursor@1.0.1
│ │ │ ├── exit-hook@1.1.1
│ │ │ └── onetime@1.1.0
│ │ ├── cli-width@2.1.0
│ │ ├── figures@1.7.0
│ │ ├─┬ readline2@1.0.1
│ │ │ ├── code-point-at@1.1.0
│ │ │ ├─┬ is-fullwidth-code-point@1.0.0
│ │ │ │ └── number-is-nan@1.0.1
│ │ │ └── mute-stream@0.0.5
│ │ ├── run-async@0.1.0
│ │ ├── rx-lite@3.1.2
│ │ ├── string-width@1.0.2
│ │ └── through@2.3.8
│ ├─┬ is-my-json-valid@2.16.0
│ │ ├── generate-function@2.0.0
│ │ ├─┬ generate-object-property@1.2.0
│ │ │ └── is-property@1.0.2
│ │ ├── jsonpointer@4.0.1
│ │ └── xtend@4.0.1
│ ├─┬ is-resolvable@1.0.0
│ │ └── tryit@1.0.3
│ ├─┬ js-yaml@3.8.3
│ │ ├─┬ argparse@1.0.9
│ │ │ └── sprintf-js@1.0.3
│ │ └── esprima@3.1.3
│ ├─┬ json-stable-stringify@1.0.1
│ │ └── jsonify@0.0.0
│ ├─┬ levn@0.3.0
│ │ ├── prelude-ls@1.1.2
│ │ └── type-check@0.3.2
│ ├── lodash@4.17.4
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ ├── natural-compare@1.4.0
│ ├─┬ optionator@0.8.2
│ │ ├── deep-is@0.1.3
│ │ ├── fast-levenshtein@2.0.6
│ │ └── wordwrap@1.0.0
│ ├── path-is-inside@1.0.2
│ ├── pluralize@1.2.1
│ ├── progress@1.1.8
│ ├─┬ require-uncached@1.0.3
│ │ ├─┬ caller-path@0.1.0
│ │ │ └── callsites@0.2.0
│ │ └── resolve-from@1.0.1
│ ├─┬ shelljs@0.7.7
│ │ ├── interpret@1.0.3
│ │ └── rechoir@0.6.2
│ ├── strip-bom@3.0.0
│ ├── strip-json-comments@2.0.1
│ ├─┬ table@3.8.3
│ │ ├─┬ ajv@4.11.8
│ │ │ └── co@4.6.0
│ │ ├── ajv-keywords@1.5.1
│ │ ├── slice-ansi@0.0.4
│ │ └─┬ string-width@2.0.0
│ │ └── is-fullwidth-code-point@2.0.0
│ ├── text-table@0.2.0
│ └─┬ user-home@2.0.0
│ └── os-homedir@1.0.2
├─┬ eslint-config-airbnb@14.1.0
│ └── eslint-config-airbnb-base@11.1.3
├─┬ eslint-plugin-import@2.2.0
│ ├── builtin-modules@1.1.1
│ ├── contains-path@0.1.0
│ ├─┬ doctrine@1.5.0
│ │ └── isarray@1.0.0
│ ├── eslint-import-resolver-node@0.2.3
│ ├─┬ eslint-module-utils@2.0.0
│ │ ├─┬ debug@2.2.0
│ │ │ └── ms@0.7.1
│ │ └── pkg-dir@1.0.0
│ ├─┬ has@1.0.1
│ │ └── function-bind@1.1.0
│ ├── lodash.cond@4.5.2
│ ├─┬ minimatch@3.0.3
│ │ └─┬ brace-expansion@1.1.7
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ └─┬ pkg-up@1.0.0
│ └── find-up@1.1.2
├─┬ eslint-plugin-jsx-a11y@4.0.0
│ ├── aria-query@0.3.0
│ ├── ast-types-flow@0.0.7
│ ├── damerau-levenshtein@1.0.4
│ ├── emoji-regex@6.4.2
│ ├── jsx-ast-utils@1.4.1
│ └── object-assign@4.1.1
├─┬ eslint-plugin-react@6.10.3
│ ├─┬ array.prototype.find@2.0.4
│ │ ├─┬ define-properties@1.1.2
│ │ │ ├── foreach@2.0.5
│ │ │ └── object-keys@1.0.11
│ │ └─┬ es-abstract@1.7.0
│ │ ├─┬ es-to-primitive@1.1.1
│ │ │ ├── is-date-object@1.0.1
│ │ │ └── is-symbol@1.0.1
│ │ ├── is-callable@1.1.3
│ │ └── is-regex@1.0.4
│ ├─┬ doctrine@1.5.0
│ │ └── isarray@1.0.0
│ └─┬ object.assign@4.0.4
│ └── object-keys@1.0.11
├─┬ nconf@0.8.4
│ ├── async@1.5.2
│ ├── ini@1.3.4
│ ├── secure-keys@1.0.0
│ └─┬ yargs@3.32.0
│ ├── camelcase@2.1.1
│ ├─┬ cliui@3.2.0
│ │ └── wrap-ansi@2.1.0
│ ├── decamelize@1.2.0
│ ├─┬ os-locale@1.4.0
│ │ └─┬ lcid@1.0.0
│ │ └── invert-kv@1.0.0
│ ├── window-size@0.1.4
│ └── y18n@3.2.1
└─┬ pinyin@2.8.3
├─┬ commander@1.1.1
│ └── keypress@0.1.0
└─┬ nodejieba@2.2.4
└── nan@2.3.5
du@du-T6-3:
~/code/project/weixin/electronic-wechat
$sudo npm start
[sudo] du 的密码:
> electronic-wechat@2.0.0 start /home/du/code/project/weixin/electronic-wechat
> electron src/main.js
/home/du/code/project/weixin/electronic-wechat/node_modules/electron/index.js:9
throw new Error('Electron failed to install correctly, please delete node_modules/' + path.basename(__dirname) + ' and try installing again')
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.<anonymous> (/home/du/code/project/weixin/electronic-wechat/node_modules/electron/index.js:9:9)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/du/code/project/weixin/electronic-wechat/node_modules/electron/cli.js:3:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! electronic-wechat@2.0.0 start: `electron src/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electronic-wechat@2.0.0 start script 'electron src/main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electronic-wechat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron src/main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electronic-wechat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electronic-wechat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/du/code/project/weixin/electronic-wechat/npm-debug.log