textlint-rule / textlint-rule-date-weekday-mismatch

textlint rule that found mismatch between date and weekday.
MIT License
10 stars 4 forks source link

sh: textlint-scripts: command not found #4

Closed docwhat closed 3 years ago

docwhat commented 3 years ago

On yarn install I get an error involving textlint-scripts.

❯ yarn install
yarn install v1.22.11
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
$ npm run --if-present build

> textlint-rule-date-weekday-mismatch@1.0.6 build
> textlint-scripts build

sh: textlint-scripts: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
docwhat commented 3 years ago

Ditto for npm:

❯ npm install
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

> textlint-rule-date-weekday-mismatch@1.0.6 prepublish
> npm run --if-present build

> textlint-rule-date-weekday-mismatch@1.0.6 build
> textlint-scripts build

sh: textlint-scripts: command not found
npm ERR! code 127
npm ERR! path /Users/docwhat/src/github.com/github.com/textlint-rule-date-weekday-mismatch.git
npm ERR! command failed
npm ERR! command sh -c npm run --if-present build

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/docwhat/.npm/_logs/2021-09-13T15_23_11_722Z-debug.log
azu commented 3 years ago

Fm, I can not reproduce it.

$ rm -rf node_modules/
$ yarn install
$ yarn list --pattern "textlint-scripts"
yarn list v1.22.10
└─ textlint-scripts@12.0.2
✨  Done in 0.38s.
$ yarn run build
yarn run v1.22.10
$ textlint-scripts build
Successfully compiled 1 file with Babel (475ms).
✨  Done in 0.85s.

Can you tell me ls node_modules result?

ls node_modules/
My results of ls ``` ls node_modules @azu has-symbols pinkie-promise @babel has-value pirates @nicolo-ribaudo has-values pkg-dir @textlint he pkg-to-readme @types hosted-git-info pluralize @ungap indent-string posix-character-classes ajv inflight prelude-ls ansi-colors inherits process-nextick-args ansi-regex is-accessor-descriptor punycode ansi-styles is-alphabetical randombytes anymatch is-alphanumerical rc-config-loader argparse is-arguments read-pkg arr-diff is-arrayish read-pkg-up arr-flatten is-binary-path readable-stream arr-union is-buffer readdirp array-find-index is-core-module redent array-unique is-data-descriptor regenerate assign-symbols is-date-object regenerate-unicode-properties astral-regex is-decimal regenerator-runtime async-each is-descriptor regenerator-transform atob is-extendable regex-not babel-plugin-dynamic-import-node is-extglob regexp.prototype.flags babel-plugin-polyfill-corejs2 is-file regexpu-core babel-plugin-polyfill-corejs3 is-finite regjsgen babel-plugin-polyfill-regenerator is-fullwidth-code-point regjsparser babel-plugin-static-fs is-glob remark-footnotes bail is-hexadecimal remark-frontmatter balanced-match is-number remark-gfm base is-plain-obj remark-parse binary-extensions is-plain-object remove-trailing-separator boundary is-regex repeat-element brace-expansion is-utf8 repeat-string braces is-windows repeating browser-resolve isarray require-directory browser-stdout isexe require-from-string browserslist isobject resolve buffer-from js-tokens resolve-url cache-base js-yaml ret camelcase jsesc rimraf camelcase-keys json-parse-better-errors safe-buffer caniuse-lite json-schema-traverse safe-regex ccount json5 semver chalk kind-of serialize-javascript character-entities levn set-value character-entities-legacy load-json-file shallow-clone character-reference-invalid locate-path shebang-command charenc lodash shebang-regex chokidar lodash.clonedeep signal-exit chrono-node lodash.debounce slash class-utils lodash.truncate slice-ansi cliui log-symbols snapdragon clone-deep longest-streak snapdragon-node code-point-at loud-rejection snapdragon-util collection-visit make-dir source-map color-convert map-cache source-map-resolve color-name map-obj source-map-support colorette map-visit source-map-url commander markdown-table spdx-correct commondir md5 spdx-exceptions component-emitter mdast-util-find-and-replace spdx-expression-parse concat-map mdast-util-footnote spdx-license-ids confirmer mdast-util-from-markdown split-string convert-source-map mdast-util-frontmatter sprintf-js copy-descriptor mdast-util-gfm static-extend core-js-compat mdast-util-gfm-autolink-literal string-width core-util-is mdast-util-gfm-strikethrough string_decoder cross-spawn mdast-util-gfm-table strip-ansi crypt mdast-util-gfm-task-list-item strip-bom currently-unhandled mdast-util-to-markdown strip-indent debug mdast-util-to-string strip-json-comments decamelize meow structured-source decode-uri-component micromark supports-color deep-equal micromark-extension-footnote table deep-is micromark-extension-frontmatter text-table define-properties micromark-extension-gfm textlint define-property micromark-extension-gfm-autolink-literal textlint-scripts diff micromark-extension-gfm-strikethrough textlint-tester ejs micromark-extension-gfm-table to-fast-properties electron-to-chromium micromark-extension-gfm-tagfilter to-object-path emoji-regex micromark-extension-gfm-task-list-item to-regex error-ex micromatch to-regex-range escalade minimatch traverse escape-string-regexp minimist trim-newlines esprima mixin-deep trough esutils mkdirp try-resolve events mocha type-check expand-brackets moment unicode-canonical-property-names-ecmascript extend ms unicode-match-property-ecmascript extend-shallow nanoid unicode-match-property-value-ecmascript extglob nanomatch unicode-property-aliases-ecmascript fast-deep-equal node-modules-regexp unified fast-levenshtein node-releases union-value fault normalize-package-data unique-concat file-entry-cache normalize-path unist-util-is fill-range number-is-nan unist-util-stringify-position find-cache-dir object-assign unist-util-visit-parents find-up object-copy unset-value flat object-is upath flat-cache object-keys uri-js flatted object-visit urix for-in object.assign use format object.pick util-deprecate fragment-cache once validate-npm-package-license fs-readdir-recursive optionator vfile fs.realpath p-limit vfile-message fsevents p-locate which function-bind p-try wide-align gensync parse-entities word-wrap get-caller-file parse-json workerpool get-stdin pascalcase wrap-ansi get-value path-exists wrappy glob path-is-absolute write glob-parent path-key xml-escape globals path-parse y18n graceful-fs path-to-glob-pattern yargs growl path-type yargs-parser has picomatch yargs-unparser has-ansi pify yocto-queue has-flag pinkie zwitch ````

Maybe, yarn install --check-files will resolve this issue.

📝 This repo uses yarn v1. no need to npm install

docwhat commented 3 years ago

Son of a Guinea Pig. I cannot reproduce it now either.

Sorry to waste your time.