Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripty ERR! It seems you may be running scripty from the command-line directly #118

Open
laterdayi opened this issue Mar 27, 2023 · 1 comment

Comments

@laterdayi
Copy link

pnpm install is normal, but it prompts in the case o·f cnpm install and yarn

scripty ERR! It seems you may be running scripty from the command-line directly.
At this time, scripty can only be run within an npm script specified in your package.json.

Example package.json entry:

  "scripts": {
    "foo:bar": "scripty"
  }

And then run via `npm run foo:bar`.

For more documentation, see:
  https://github.com/testdouble/scripty

@jasonkarns

@laterdayi
Copy link
Author

> scripty
scripty ERR! It seems you may be running scripty from the command-line directly.
At this time, scripty can only be run within an npm script specified in your package.json.

Example package.json entry:

  "scripts": {
    "foo:bar": "scripty"
  }

And then run via `npm run foo:bar`.

For more documentation, see:
  https://github.com/testdouble/scripty

Exiting.
[npminstall:runscript:error] run prepare scripty error: Error: Command failed with exit code 1: scripty
    at makeError (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\execa\lib\error.js:60:11)
    at handlePromise (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async exports.runScript (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12)
    at async runLifecycleScripts (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7)
    at async _install (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:167:5)
    at async module.exports (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:86:5)
    at async F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\bin\install.js:480:5 {
  shortMessage: 'Command failed with exit code 1: scripty',
  command: 'scripty',
  escapedCommand: 'scripty',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
> prepare, finished in 87ms
× Install fail! Error: run prepare error, please remove node_modules before retry!
Command failed with exit code 1: scripty
Error: Command failed with exit code 1: scripty
    at makeError (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\execa\lib\error.js:60:11)
    at handlePromise (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async exports.runScript (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\utils.js:262:12)
    at async runLifecycleScripts (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\lifecycle_scripts.js:64:7)
    at async _install (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:167:5)
    at async module.exports (F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\lib\local_install.js:86:5)
    at async F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\bin\install.js:480:5
npminstall version: 7.5.2
npminstall argv: F:\node\node.exe F:\nvm\v19.7.0\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\admin\.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant