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

upgrade node version for workflows #124

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Conversation

aksakalli
Copy link
Owner

v1.1.3 release action failed due to old node version not able to install pair dependency: publishing run gives

> gtop@1.1.3 prepublishOnly .
> marked-man --version $npm_package_version --manual 'Gtop Help' --section 1 ./CLI.md > gtop.1

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'marked'
Require stack:
- /home/runner/work/gtop/gtop/node_modules/marked-man/lib/marked-man.js
- /home/runner/work/gtop/gtop/node_modules/marked-man/bin/marked-man
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/gtop/gtop/node_modules/marked-man/lib/marked-man.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/runner/work/gtop/gtop/node_modules/marked-man/lib/marked-man.js',
    '/home/runner/work/gtop/gtop/node_modules/marked-man/bin/marked-man'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gtop@1.1.3 prepublishOnly: `marked-man --version $npm_package_version --manual 'Gtop Help' --section 1 ./CLI.md > gtop.1`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gtop@1.1.3 prepublishOnly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-01-12T21_07_25_319Z-debug.log
Error: Process completed with exit code 1.

upgrading NodeJS version will solve it since I don't have the same problem while publishing in my local machine with a more recent NodeJS version.

@aksakalli aksakalli merged commit 14c1dc3 into master Jan 12, 2022
@aksakalli aksakalli deleted the node17-for-workflows branch January 12, 2022 22:11
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

Successfully merging this pull request may close these issues.

1 participant