установить пакет пряжи mjml2json - PullRequest
0 голосов
/ 03 апреля 2019

Я пытаюсь установить пакет mjml2json здесь . Я установил в одну папку и у меня есть файл input.mjml в той же директории, но при установке он не распознает команду.

Может кто-нибудь посоветовать, где я иду не так? У меня такая же проблема с json2mjml, скорее всего, по той же причине.

yarn add mjml2json
yarn add v1.7.0
info No lockfile found.
(node:31868) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
warning mjml2json > mjml > mjml-accordion > react > fbjs > core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
[2/4] Fetching packages...
info fsevents@1.2.7: The platform "win32" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.15.2", while you're on "1.7.0".
success Saved 247 new dependencies.
info Direct dependencies
└─ mjml2json@1.0.1
info All dependencies
├─ abbrev@1.1.1
├─ ajv@6.10.0
├─ ansi-styles@2.2.1
├─ anymatch@1.3.2
├─ arr-flatten@1.1.0
├─ asap@2.0.6
├─ asn1@0.2.4
├─ assign-symbols@1.0.0
├─ async-each@1.0.2
├─ async@2.6.2
├─ asynckit@0.4.0
├─ atob@2.1.2
├─ aws-sign2@0.7.0
├─ aws4@1.8.0
├─ balanced-match@1.0.0
├─ base@0.11.2
├─ bcrypt-pbkdf@1.0.2
├─ binary-extensions@1.13.1
├─ brace-expansion@1.1.11
├─ braces@1.8.5
├─ cache-base@1.0.1
├─ camel-case@3.0.0
├─ caseless@0.12.0
├─ chalk@1.1.3
├─ chokidar@1.7.0
├─ class-utils@0.3.6
├─ clean-css@4.2.1
├─ collection-visit@1.0.0
├─ combined-stream@1.0.7
├─ commander@2.20.0
├─ concat-map@0.0.1
├─ config-chain@1.1.12
├─ copy-descriptor@0.1.1
├─ core-js@1.2.7
├─ core-util-is@1.0.2
├─ create-react-class@15.6.3
├─ cross-spawn@5.1.0
├─ css-select@1.2.0
├─ css-what@2.1.3
├─ dashdash@1.14.1
├─ datauri@1.1.0
├─ debug@2.6.9
├─ decode-uri-component@0.2.0
├─ deep-extend@0.5.1
├─ delayed-stream@1.0.0
├─ domhandler@2.4.2
├─ domutils@1.7.0
├─ ecc-jsbn@0.1.2
├─ editorconfig@0.15.3
├─ encoding@0.1.12
├─ entities@1.1.2
├─ escape-string-regexp@1.0.5
├─ expand-brackets@0.1.5
├─ expand-range@1.8.2
├─ extend@3.0.2
├─ extglob@0.3.2
├─ extsprintf@1.3.0
├─ fast-deep-equal@2.0.1
├─ fast-json-stable-stringify@2.0.0
├─ filename-regex@2.0.1
├─ fill-range@4.0.0
├─ for-in@1.0.2
├─ for-own@0.1.5
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ fs.realpath@1.0.0
├─ get-value@2.0.6
├─ getpass@0.1.7
├─ glob-base@0.3.0
├─ glob@7.1.3
├─ graceful-fs@4.1.15
├─ har-schema@2.0.0
├─ har-validator@5.1.3
├─ has-ansi@2.0.0
├─ has-value@1.0.0
├─ has-values@1.0.0
├─ he@1.2.0
├─ hoist-non-react-statics@1.2.0
├─ html-minifier@3.5.21
├─ http-signature@1.2.0
├─ iconv-lite@0.4.24
├─ image-size@0.6.3
├─ immutable@3.8.2
├─ inflight@1.0.6
├─ inherits@2.0.3
├─ ini@1.3.5
├─ is-accessor-descriptor@1.0.0
├─ is-binary-path@1.0.1
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-dotfile@1.0.3
├─ is-equal-shallow@0.1.3
├─ is-plain-object@2.0.4
├─ is-posix-bracket@0.1.1
├─ is-primitive@2.0.0
├─ is-stream@1.1.0
├─ is-typedarray@1.0.0
├─ is-windows@1.0.2
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ isomorphic-fetch@2.2.1
├─ isstream@0.1.2
├─ jquery@3.3.1
├─ js-beautify@1.9.1
├─ js-tokens@4.0.0
├─ json-schema-traverse@0.4.1
├─ json-schema@0.2.3
├─ json-stringify-safe@5.0.1
├─ jsprim@1.4.1
├─ juice@4.3.2
├─ kind-of@3.2.2
├─ lodash.assignin@4.2.0
├─ lodash.bind@4.2.1
├─ lodash.defaults@4.2.0
├─ lodash.filter@4.6.0
├─ lodash.flatten@4.4.0
├─ lodash.foreach@4.5.0
├─ lodash.map@4.6.0
├─ lodash.merge@4.6.1
├─ lodash.pick@4.4.0
├─ lodash.reduce@4.6.0
├─ lodash.reject@4.6.0
├─ lodash.some@4.6.0
├─ lodash.unescape@4.0.1
├─ lodash@4.17.11
├─ lower-case@1.1.4
├─ lru-cache@4.1.5
├─ map-visit@1.0.0
├─ math-random@1.0.4
├─ mensch@0.3.3
├─ micromatch@2.3.11
├─ mime-db@1.38.0
├─ mime-types@2.1.22
├─ mimer@0.3.2
├─ minimatch@3.0.4
├─ minimist@0.0.8
├─ mixin-deep@1.3.1
├─ mjml-accordion@3.3.5
├─ mjml-button@3.3.5
├─ mjml-carousel@3.3.5
├─ mjml-cli@3.3.5
├─ mjml-column@3.3.5
├─ mjml-container@3.3.5
├─ mjml-divider@3.3.5
├─ mjml-group@3.3.5
├─ mjml-head-attributes@3.3.5
├─ mjml-head-font@3.3.5
├─ mjml-head-preview@3.3.5
├─ mjml-head-style@3.3.5
├─ mjml-head-title@3.3.5
├─ mjml-hero@3.3.5
├─ mjml-html@3.3.5
├─ mjml-image@3.3.5
├─ mjml-invoice@3.3.5
├─ mjml-list@3.3.5
├─ mjml-location@3.3.5
├─ mjml-navbar@3.3.5
├─ mjml-raw@3.3.5
├─ mjml-social@3.3.5
├─ mjml-spacer@3.3.5
├─ mjml-table@3.3.5
├─ mjml-text@3.3.5
├─ mjml-validator@3.3.5
├─ mjml-wrapper@3.3.5
├─ mjml@3.3.5
├─ mjml2json@1.0.1
├─ mkdirp@0.5.1
├─ ms@2.0.0
├─ mz@2.7.0
├─ nanomatch@1.2.13
├─ node-fetch@1.7.3
├─ nopt@4.0.1
├─ normalize-path@2.1.1
├─ nth-check@1.0.2
├─ numeral@2.0.6
├─ oauth-sign@0.9.0
├─ object-assign@4.1.1
├─ object-copy@0.1.0
├─ object.omit@2.0.1
├─ os-homedir@1.0.2
├─ os-tmpdir@1.0.2
├─ osenv@0.1.5
├─ param-case@2.1.1
├─ parse-glob@3.0.4
├─ pascalcase@0.1.1
├─ performance-now@2.1.0
├─ posix-character-classes@0.1.1
├─ preserve@0.2.0
├─ process-nextick-args@2.0.0
├─ promise@7.3.1
├─ proto-list@1.2.4
├─ pseudomap@1.0.2
├─ psl@1.1.31
├─ punycode@1.4.1
├─ qs@6.5.2
├─ randomatic@3.1.1
├─ react-dom@15.6.2
├─ react-is@16.8.6
├─ readable-stream@2.3.6
├─ readdirp@2.2.1
├─ regex-cache@0.4.4
├─ relateurl@0.2.7
├─ remove-trailing-separator@1.1.0
├─ request@2.88.0
├─ resolve-url@0.2.1
├─ ret@0.1.15
├─ safer-buffer@2.1.2
├─ semver@5.7.0
├─ set-value@2.0.0
├─ setimmediate@1.0.5
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ sigmund@1.0.1
├─ slick@1.12.2
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ source-map-resolve@0.5.2
├─ source-map-url@0.4.0
├─ source-map@0.6.1
├─ split-string@3.1.0
├─ sshpk@1.16.1
├─ static-extend@0.1.2
├─ string_decoder@1.1.1
├─ strip-ansi@3.0.1
├─ supports-color@2.0.0
├─ thenify-all@1.6.0
├─ thenify@3.3.0
├─ to-regex-range@2.1.1
├─ tough-cookie@2.4.3
├─ tunnel-agent@0.6.0
├─ tweetnacl@0.14.5
├─ ua-parser-js@0.7.19
├─ uglify-js@3.4.10
├─ union-value@1.0.0
├─ unset-value@1.0.0
├─ upper-case@1.1.3
├─ uri-js@4.2.2
├─ urix@0.1.0
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ uuid@3.3.2
├─ valid-data-url@0.1.6
├─ verror@1.10.0
├─ web-resource-inliner@4.3.1
├─ whatwg-fetch@3.0.0
├─ which@1.3.1
└─ xtend@4.0.1
Done in 81.14s.
PS C:\Exercise\Private\mjml> mjml2json input.mjml output.json
mjml2json : The term 'mjml2json' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and 
try again.
At line:1 char:1
+ mjml2json input.mjml output.json
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (mjml2json:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PSC:\Exercise\Private\mjml> node mjml2json input.mjml output.json
internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module 'C:\Exercise\Private\mjml'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
PS C:\Exercise\Private\mjml>
...