Closed pingshunhuangalex closed 7 years ago
$ npm version
{ npm: '3.10.8',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '57.1',
modules: '48',
node: '6.7.0',
openssl: '1.0.2j',
uv: '1.9.1',
v8: '5.1.281.83',
zlib: '1.2.8' }
$ npm ls
C:\Users\Pingshun Huang
+-- ijavascript@5.0.14
| `-- jp-kernel@0.0.1
| +-- jmp@0.4.0
| | `-- zmq@2.15.3
| | +-- bindings@1.2.1
| | `-- nan@2.3.5
| `-- nel@0.5.0
+-- jp-babel@0.1.1
| +-- babel-core@6.17.0
| | +-- babel-code-frame@6.16.0
| | | +-- chalk@1.1.3
| | | | +-- ansi-styles@2.2.1
| | | | +-- escape-string-regexp@1.0.5
| | | | +-- has-ansi@2.0.0
| | | | `-- supports-color@2.0.0
| | | +-- esutils@2.0.2
| | | `-- js-tokens@2.0.0
| | +-- babel-generator@6.17.0
| | | +-- detect-indent@3.0.1
| | | | +-- get-stdin@4.0.1
| | | | +-- minimist@1.2.0
| | | | `-- repeating@1.1.3
| | | | `-- is-finite@1.0.2
| | | `-- jsesc@1.3.0
| | +-- babel-helpers@6.16.0
| | +-- babel-messages@6.8.0
| | +-- babel-runtime@6.11.6
| | | `-- regenerator-runtime@0.9.5
| | +-- babel-template@6.16.0
| | +-- babel-traverse@6.16.0
| | | +-- globals@8.18.0
| | | `-- invariant@2.2.1
| | | `-- loose-envify@1.2.0
| | | `-- js-tokens@1.0.3
| | +-- babel-types@6.16.0
| | | `-- to-fast-properties@1.0.2
| | +-- babylon@6.11.4
| | +-- convert-source-map@1.3.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- json5@0.4.0
| | +-- lodash@4.16.3
| | +-- path-exists@1.0.0
| | +-- path-is-absolute@1.0.1
| | +-- private@0.1.6
| | +-- shebang-regex@1.0.0
| | +-- slash@1.0.0
| | `-- source-map@0.5.6
| +-- babel-preset-es2015@6.16.0
| | +-- babel-plugin-check-es2015-constants@6.8.0
| | +-- babel-plugin-transform-es2015-arrow-functions@6.8.0
| | +-- babel-plugin-transform-es2015-block-scoped-functions@6.8.0
| | +-- babel-plugin-transform-es2015-block-scoping@6.15.0
| | +-- babel-plugin-transform-es2015-classes@6.14.0
| | | +-- babel-helper-define-map@6.9.0
| | | +-- babel-helper-function-name@6.8.0
| | | +-- babel-helper-optimise-call-expression@6.8.0
| | | `-- babel-helper-replace-supers@6.16.0
| | +-- babel-plugin-transform-es2015-computed-properties@6.8.0
| | +-- babel-plugin-transform-es2015-destructuring@6.16.0
| | +-- babel-plugin-transform-es2015-duplicate-keys@6.8.0
| | +-- babel-plugin-transform-es2015-for-of@6.8.0
| | +-- babel-plugin-transform-es2015-function-name@6.9.0
| | +-- babel-plugin-transform-es2015-literals@6.8.0
| | +-- babel-plugin-transform-es2015-modules-amd@6.8.0
| | +-- babel-plugin-transform-es2015-modules-commonjs@6.16.0
| | | `-- babel-plugin-transform-strict-mode@6.11.3
| | +-- babel-plugin-transform-es2015-modules-systemjs@6.14.0
| | | `-- babel-helper-hoist-variables@6.8.0
| | +-- babel-plugin-transform-es2015-modules-umd@6.12.0
| | +-- babel-plugin-transform-es2015-object-super@6.8.0
| | +-- babel-plugin-transform-es2015-parameters@6.17.0
| | | +-- babel-helper-call-delegate@6.8.0
| | | `-- babel-helper-get-function-arity@6.8.0
| | +-- babel-plugin-transform-es2015-shorthand-properties@6.8.0
| | +-- babel-plugin-transform-es2015-spread@6.8.0
| | +-- babel-plugin-transform-es2015-sticky-regex@6.8.0
| | | `-- babel-helper-regex@6.9.0
| | +-- babel-plugin-transform-es2015-template-literals@6.8.0
| | +-- babel-plugin-transform-es2015-typeof-symbol@6.8.0
| | +-- babel-plugin-transform-es2015-unicode-regex@6.11.0
| | | `-- regexpu-core@2.0.0
| | | +-- regenerate@1.3.1
| | | +-- regjsgen@0.2.0
| | | `-- regjsparser@0.1.5
| | | `-- jsesc@0.5.0
| | `-- babel-plugin-transform-regenerator@6.16.1
| `-- babel-register@6.16.3
| +-- core-js@2.4.1
| +-- home-or-tmp@1.0.0
| | `-- user-home@1.1.1
| `-- source-map-support@0.4.3
+-- node-gyp@3.4.0
| +-- fstream@1.0.10
| | `-- inherits@2.0.3
| +-- glob@7.1.0
| | +-- fs.realpath@1.0.0
| | +-- inflight@1.0.5
| | | `-- wrappy@1.0.2
| | `-- once@1.4.0
| +-- graceful-fs@4.1.9
| +-- minimatch@3.0.3
| | `-- brace-expansion@1.1.6
| | +-- balanced-match@0.4.2
| | `-- concat-map@0.0.1
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- nopt@3.0.6
| | `-- abbrev@1.0.9
| +-- npmlog@3.1.2
| | +-- are-we-there-yet@1.1.2
| | | +-- delegates@1.0.0
| | | `-- readable-stream@2.1.5
| | | +-- buffer-shims@1.0.0
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@1.0.7
| | | +-- string_decoder@0.10.31
| | | `-- util-deprecate@1.0.2
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.6.0
| | | +-- aproba@1.0.4
| | | +-- has-color@0.1.7
| | | +-- has-unicode@2.0.1
| | | +-- object-assign@4.1.0
| | | +-- signal-exit@3.0.1
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.0.1
| | | | | `-- number-is-nan@1.0.1
| | | | `-- is-fullwidth-code-point@1.0.0
| | | +-- strip-ansi@3.0.1
| | | | `-- ansi-regex@2.0.0
| | | `-- wide-align@1.1.0
| | `-- set-blocking@2.0.0
| +-- osenv@0.1.3
| | +-- os-homedir@1.0.2
| | `-- os-tmpdir@1.0.2
| +-- path-array@1.0.1
| | `-- array-index@1.0.0
| | `-- es6-symbol@3.1.0
| | +-- d@0.1.1
| | `-- es5-ext@0.10.12
| | `-- es6-iterator@2.0.0
| +-- request@2.75.0
| | +-- aws-sign2@0.6.0
| | +-- aws4@1.4.1
| | +-- bl@1.1.2
| | | `-- readable-stream@2.0.6
| | +-- caseless@0.11.0
| | +-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- extend@3.0.0
| | +-- forever-agent@0.6.1
| | +-- form-data@2.0.0
| | | `-- asynckit@0.4.0
| | +-- har-validator@2.0.6
| | | +-- commander@2.9.0
| | | | `-- graceful-readlink@1.0.1
| | | +-- is-my-json-valid@2.15.0
| | | | +-- generate-function@2.0.0
| | | | +-- generate-object-property@1.2.0
| | | | | `-- is-property@1.0.2
| | | | +-- jsonpointer@4.0.0
| | | | `-- xtend@4.0.1
| | | `-- pinkie-promise@2.0.1
| | | `-- pinkie@2.0.4
| | +-- 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.3.1
| | | | +-- extsprintf@1.0.2
| | | | +-- json-schema@0.2.3
| | | | `-- verror@1.3.6
| | | `-- sshpk@1.10.1
| | | +-- asn1@0.2.3
| | | +-- assert-plus@1.0.0
| | | +-- bcrypt-pbkdf@1.0.0
| | | +-- dashdash@1.14.0
| | | | `-- assert-plus@1.0.0
| | | +-- ecc-jsbn@0.1.1
| | | +-- getpass@0.1.6
| | | | `-- assert-plus@1.0.0
| | | +-- jodid25519@1.0.2
| | | +-- jsbn@0.1.0
| | | `-- tweetnacl@0.14.3
| | +-- is-typedarray@1.0.0
| | +-- isstream@0.1.2
| | +-- json-stringify-safe@5.0.1
| | +-- mime-types@2.1.12
| | | `-- mime-db@1.24.0
| | +-- node-uuid@1.4.7
| | +-- oauth-sign@0.8.2
| | +-- qs@6.2.1
| | +-- stringstream@0.0.5
| | +-- tough-cookie@2.3.1
| | `-- tunnel-agent@0.4.3
| +-- rimraf@2.5.4
| +-- semver@5.3.0
| +-- tar@2.2.1
| | `-- block-stream@0.0.9
| `-- which@1.2.11
| `-- isexe@1.1.2
`-- npm@3.10.8
+-- abbrev@1.0.9
+-- ansi-regex@2.0.0
+-- ansicolors@0.3.2
+-- ansistyles@0.1.3
+-- aproba@1.0.4
+-- archy@1.0.0
+-- asap@2.0.4
+-- chownr@1.0.1
+-- cmd-shim@2.0.2
+-- columnify@1.5.4
| `-- wcwidth@1.0.0
| `-- defaults@1.0.3
| `-- clone@1.0.2
+-- config-chain@1.1.10
| `-- proto-list@1.2.4
+-- debuglog@1.0.1
+-- dezalgo@1.0.3
+-- editor@1.0.0
+-- fs-vacuum@1.2.9
+-- fs-write-stream-atomic@1.0.8
+-- fstream@1.0.10
+-- fstream-npm@1.2.0
| `-- fstream-ignore@1.0.5
| `-- minimatch@3.0.3
| `-- brace-expansion@1.1.6
| +-- balanced-match@0.4.2
| `-- concat-map@0.0.1
+-- glob@7.0.6
| +-- fs.realpath@1.0.0
| +-- minimatch@3.0.3
| | `-- brace-expansion@1.1.6
| | +-- balanced-match@0.4.2
| | `-- concat-map@0.0.1
| `-- path-is-absolute@1.0.0
+-- graceful-fs@4.1.6
+-- has-unicode@2.0.1
+-- hosted-git-info@2.1.5
+-- iferr@0.1.5
+-- imurmurhash@0.1.4
+-- inflight@1.0.5
+-- inherits@2.0.3
+-- ini@1.3.4
+-- init-package-json@1.9.4
| +-- glob@6.0.4
| | +-- minimatch@3.0.3
| | | `-- brace-expansion@1.1.6
| | | +-- balanced-match@0.4.2
| | | `-- concat-map@0.0.1
| | `-- path-is-absolute@1.0.0
| `-- promzard@0.3.0
+-- lockfile@1.0.1
+-- lodash._baseindexof@3.1.0
+-- lodash._baseuniq@4.6.0
| +-- lodash._createset@4.0.3
| `-- lodash._root@3.0.1
+-- lodash._bindcallback@3.0.1
+-- lodash._cacheindexof@3.0.2
+-- lodash._createcache@3.1.2
+-- lodash._getnative@3.9.1
+-- lodash.clonedeep@4.5.0
+-- lodash.restparam@3.6.1
+-- lodash.union@4.6.0
+-- lodash.uniq@4.5.0
+-- lodash.without@4.4.0
+-- mkdirp@0.5.1
| `-- minimist@0.0.8
+-- node-gyp@3.4.0
| +-- minimatch@3.0.3
| | `-- brace-expansion@1.1.6
| | +-- balanced-match@0.4.2
| | `-- concat-map@0.0.1
| +-- npmlog@3.1.2
| | +-- are-we-there-yet@1.1.2
| | | `-- delegates@1.0.0
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.6.0
| | | +-- has-color@0.1.7
| | | +-- object-assign@4.1.0
| | | +-- signal-exit@3.0.0
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.0.0
| | | | | `-- number-is-nan@1.0.0
| | | | `-- is-fullwidth-code-point@1.0.0
| | | | `-- number-is-nan@1.0.0
| | | `-- wide-align@1.1.0
| | `-- set-blocking@2.0.0
| `-- path-array@1.0.1
| `-- array-index@1.0.0
| +-- debug@2.2.0
| | `-- ms@0.7.1
| `-- es6-symbol@3.1.0
| +-- d@0.1.1
| `-- es5-ext@0.10.12
| `-- es6-iterator@2.0.0
+-- nopt@3.0.6
+-- normalize-git-url@3.0.2
+-- normalize-package-data@2.3.5
| `-- is-builtin-module@1.0.0
| `-- builtin-modules@1.1.1
+-- npm-cache-filename@1.0.2
+-- npm-install-checks@3.0.0
+-- npm-package-arg@4.2.0
+-- npm-registry-client@7.2.1
| +-- concat-stream@1.5.2
| | +-- readable-stream@2.0.6
| | | +-- core-util-is@1.0.2
| | | +-- isarray@1.0.0
| | | +-- process-nextick-args@1.0.7
| | | +-- string_decoder@0.10.31
| | | `-- util-deprecate@1.0.2
| | `-- typedarray@0.0.6
| +-- npmlog@3.1.2
| | +-- are-we-there-yet@1.1.2
| | | `-- delegates@1.0.0
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.6.0
| | | +-- has-color@0.1.7
| | | +-- object-assign@4.1.0
| | | +-- signal-exit@3.0.0
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.0.0
| | | | | `-- number-is-nan@1.0.0
| | | | `-- is-fullwidth-code-point@1.0.0
| | | | `-- number-is-nan@1.0.0
| | | `-- wide-align@1.1.0
| | `-- set-blocking@2.0.0
| `-- retry@0.10.0
+-- npm-user-validate@0.1.5
+-- npmlog@4.0.0
| +-- are-we-there-yet@1.1.2
| | `-- delegates@1.0.0
| +-- console-control-strings@1.1.0
| +-- gauge@2.6.0
| | +-- has-color@0.1.7
| | +-- object-assign@4.1.0
| | +-- signal-exit@3.0.0
| | +-- string-width@1.0.2
| | | +-- code-point-at@1.0.0
| | | | `-- number-is-nan@1.0.0
| | | `-- is-fullwidth-code-point@1.0.0
| | | `-- number-is-nan@1.0.0
| | `-- wide-align@1.1.0
| `-- set-blocking@2.0.0
+-- once@1.4.0
+-- opener@1.4.1
+-- osenv@0.1.3
| +-- os-homedir@1.0.1
| `-- os-tmpdir@1.0.1
+-- path-is-inside@1.0.1
+-- read@1.0.7
| `-- mute-stream@0.0.5
+-- read-cmd-shim@1.0.1
+-- read-installed@4.0.3
| `-- util-extend@1.0.3
+-- read-package-json@2.0.4
| +-- glob@6.0.4
| | +-- minimatch@3.0.3
| | | `-- brace-expansion@1.1.6
| | | +-- balanced-match@0.4.2
| | | `-- concat-map@0.0.1
| | `-- path-is-absolute@1.0.0
| `-- json-parse-helpfulerror@1.0.3
| `-- jju@1.3.0
+-- read-package-tree@5.1.5
+-- readable-stream@2.1.5
| +-- buffer-shims@1.0.0
| +-- core-util-is@1.0.2
| +-- isarray@1.0.0
| +-- process-nextick-args@1.0.7
| +-- string_decoder@0.10.31
| `-- util-deprecate@1.0.2
+-- readdir-scoped-modules@1.0.2
+-- realize-package-specifier@3.0.3
+-- request@2.74.0
| +-- aws-sign2@0.6.0
| +-- aws4@1.4.1
| +-- bl@1.1.2
| | `-- readable-stream@2.0.6
| | +-- core-util-is@1.0.2
| | +-- isarray@1.0.0
| | +-- process-nextick-args@1.0.7
| | +-- string_decoder@0.10.31
| | `-- util-deprecate@1.0.2
| +-- caseless@0.11.0
| +-- combined-stream@1.0.5
| | `-- delayed-stream@1.0.0
| +-- extend@3.0.0
| +-- forever-agent@0.6.1
| +-- form-data@1.0.0-rc4
| | `-- async@1.5.2
| +-- har-validator@2.0.6
| | +-- chalk@1.1.3
| | | +-- ansi-styles@2.2.1
| | | +-- escape-string-regexp@1.0.5
| | | +-- has-ansi@2.0.0
| | | `-- supports-color@2.0.0
| | +-- commander@2.9.0
| | | `-- graceful-readlink@1.0.1
| | +-- is-my-json-valid@2.13.1
| | | +-- generate-function@2.0.0
| | | +-- generate-object-property@1.2.0
| | | | `-- is-property@1.0.2
| | | +-- jsonpointer@2.0.0
| | | `-- xtend@4.0.1
| | `-- pinkie-promise@2.0.1
| | `-- pinkie@2.0.4
| +-- 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.3.0
| | | +-- extsprintf@1.0.2
| | | +-- json-schema@0.2.2
| | | `-- verror@1.3.6
| | `-- sshpk@1.9.2
| | +-- asn1@0.2.3
| | +-- assert-plus@1.0.0
| | +-- dashdash@1.14.0
| | +-- ecc-jsbn@0.1.1
| | +-- getpass@0.1.6
| | +-- jodid25519@1.0.2
| | +-- jsbn@0.1.0
| | `-- tweetnacl@0.13.3
| +-- is-typedarray@1.0.0
| +-- isstream@0.1.2
| +-- json-stringify-safe@5.0.1
| +-- mime-types@2.1.11
| | `-- mime-db@1.23.0
| +-- node-uuid@1.4.7
| +-- oauth-sign@0.8.2
| +-- qs@6.2.1
| +-- stringstream@0.0.5
| +-- tough-cookie@2.3.1
| `-- tunnel-agent@0.4.3
+-- retry@0.10.0
+-- rimraf@2.5.4
+-- semver@5.3.0
+-- sha@2.0.1
+-- slide@1.1.6
+-- sorted-object@2.0.0
+-- strip-ansi@3.0.1
+-- tar@2.2.1
| `-- block-stream@0.0.8
+-- text-table@0.2.0
+-- uid-number@0.0.6
+-- umask@1.1.0
+-- unique-filename@1.1.0
| `-- unique-slug@2.0.0
+-- unpipe@1.0.0
+-- validate-npm-package-license@3.0.1
| +-- spdx-correct@1.0.2
| | `-- spdx-license-ids@1.2.0
| `-- spdx-expression-parse@1.0.2
| +-- spdx-exceptions@1.0.4
| `-- spdx-license-ids@1.2.0
+-- validate-npm-package-name@2.2.2
| `-- builtins@0.0.7
+-- which@1.2.11
| `-- isexe@1.1.2
+-- wrappy@1.0.2
`-- write-file-atomic@1.2.0
On 04/10/16 11:06, Pingshun Huang wrote:
Sorry @n-riesco https://github.com/n-riesco for spamming... One last issue I promise.
I installed jp-babel without any issue, but I just can't get hydrogen to run on Babel ES6 Javascript (powered by language-babel package in Atom) although the kernel is properly registered. Since jp-babel use |babel-preset-2015| and ES6=ES2015, I thought I don't have to do any setting. It should just work after installation, right?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/n-riesco/jp-babel/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6YX4YIAESZG1rmCxr4x2nf_klwFk54ks5qwiUkgaJpZM4KNgIr.
Maybe I should change jp-babel's kernel spec, because it declares the language to be babel and this confuses Hydrogen.
Hydrogen has a setting to workaround this issue. See languageMappings
, setting { "babel": "javascript" }
should fix the issue.
Set it to { "babel": "babel es6 javascript" }
solves the issue. Thank you so much, and I feel I learnt a lot today.
Sorry @n-riesco for spamming... One last issue I promise.
I installed jp-babel without any issue, but I just can't get hydrogen to run on Babel ES6 Javascript (powered by language-babel package in Atom), and the kernel is properly registered. Since jp-babel use
babel-preset-2015
and ES6=ES2015, I thought I don't have to do any setting. It should just work after installation, right?