Closed yoannfleurydev closed 3 weeks ago
@kobenguyent there is an issue while running npm run docs
.
I installed dependencies (using --force
) with Node.js 18 and Node.js 20 because it was not installing dependencies (https://github.com/codeceptjs/CodeceptJS/issues/4371)
Could you try this npm run def && npm run docs
npm run def
is giving me an error.
[#35 NPX] › ℹ npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#36 REPLACEINFILE] › ℹ node_modules/@codeceptjs/detox-helper/Detox.js
[#36 REPLACEINFILE] › ✖ Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'" in 0 ms
[#36 REPLACEINFILE] › ⚠warning Execution stopped
And then running npm run docs
is kind of giving me the same one.
> codeceptjs@3.6.2 docs
> ./runok.js docs
Writing documentation for AI
[#1 COPY] › ℹ lib/helper/AI.js => docs/build/AI.js
[#1 COPY] › ✔ Finished in 1 ms
[#2 REPLACEINFILE] › ℹ docs/build/AI.js
[#2 REPLACEINFILE] › ✔ Finished in 0 ms
[#3 NPX] › ℹ npx documentation build docs/build/AI.js -o docs/helpers/AI.md -f md --shallow --markdown-toc=false --sort-order=alpha
[#4 NPX] › ℹ npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha
Building @codecepjs/detox helper docs
[#5 REPLACEINFILE] › ℹ node_modules/@codeceptjs/detox-helper/Detox.js
[#5 REPLACEINFILE] › ✖ Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'" in 0 ms
[#5 REPLACEINFILE] › ⚠warning Execution stopped
npm run def
is giving me an error.[#35 NPX] › ℹ npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha Building @codecepjs/detox helper docs [#36 REPLACEINFILE] › ℹ node_modules/@codeceptjs/detox-helper/Detox.js [#36 REPLACEINFILE] › ✖ Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'" in 0 ms [#36 REPLACEINFILE] › ⚠warning Execution stopped
And then running
npm run docs
is kind of giving me the same one.> codeceptjs@3.6.2 docs > ./runok.js docs Writing documentation for AI [#1 COPY] › ℹ lib/helper/AI.js => docs/build/AI.js [#1 COPY] › ✔ Finished in 1 ms [#2 REPLACEINFILE] › ℹ docs/build/AI.js [#2 REPLACEINFILE] › ✔ Finished in 0 ms [#3 NPX] › ℹ npx documentation build docs/build/AI.js -o docs/helpers/AI.md -f md --shallow --markdown-toc=false --sort-order=alpha [#4 NPX] › ℹ npx documentation build lib/plugin/*.js -o docs/plugins.md -f md --shallow --markdown-toc=false --sort-order=alpha Building @codecepjs/detox helper docs [#5 REPLACEINFILE] › ℹ node_modules/@codeceptjs/detox-helper/Detox.js [#5 REPLACEINFILE] › ✖ Failed with "ENOENT: no such file or directory, open 'node_modules/@codeceptjs/detox-helper/Detox.js'" in 0 ms [#5 REPLACEINFILE] › ⚠warning Execution stopped
well, I think you haven't run npm i -f
Thanks a lot, I removed my node_modules
and did again install force, and it worked.
The PR is updated with your feedbacks. Thanks a lot for your patience and answering my dumb questions 😄
No worries @yoannfleurydev 😀 I bumped into the same thing when I first touched the codebase.
Motivation/Description of the PR
Broken link in puppeteer helper documentation
Applicable helpers:
Applicable plugins:
Type of change
Checklist:
npm run docs
)npm run lint
)npm test
)