Issue setting up project locally
Myrfion opened this issue · 2 comments
What happened:
I tried to set up the project locally, and ran all the needed things such as:
- installing
pnpm
- installing dependendies
pnpm install
But then, when I tried to run tests (pnpm test
) I faced following error:
@senecacdot/github-url-parser:test: Building...
@senecacdot/github-url-parser:test: Installing @parcel/transformer-typescript-types...
@senecacdot/github-url-parser:test: 🚨 Build failed.
@senecacdot/github-url-parser:test:
@senecacdot/github-url-parser:test: Error: Failed to install @parcel/transformer-typescript-types: pnpm failed to install modules
@senecacdot/github-url-parser:test:
@senecacdot/github-url-parser:test: Error: Failed to install @parcel/transformer-typescript-types: pnpm failed to install modules
@senecacdot/github-url-parser:test: at $32ea97b83cf5d752$var$install
@senecacdot/github-url-parser:test: (/Users/tymurlevstun/Documents/GitHub/telescope/node_modules/.pnpm/@parcel+package-manager@2.6.2_@parcel+core@2.6.2/node_modules/@parcel/package-manager/lib/index.js:3688:15)
@senecacdot/github-url-parser:test: at processTicksAndRejections (node:internal/process/task_queues:96:5)
@senecacdot/github-url-parser:test: at async $b0fd219fea43bcac$export$2e2bcd8739ae039._runFn
@senecacdot/github-url-parser:test: (/Users/tymurlevstun/Documents/GitHub/telescope/node_modules/.pnpm/@parcel+utils@2.6.2/node_modules/@parcel/utils/lib/index.js:32339:13)
@senecacdot/github-url-parser:test: at async $b0fd219fea43bcac$export$2e2bcd8739ae039._next
@senecacdot/github-url-parser:test: (/Users/tymurlevstun/Documents/GitHub/telescope/node_modules/.pnpm/@parcel+utils@2.6.2/node_modules/@parcel/utils/lib/index.js:32332:9)
@senecacdot/github-url-parser:test:
@senecacdot/github-url-parser:test: ELIFECYCLE Command failed with exit code 1.
@senecacdot/github-url-parser:test: ERROR: "build" exited with 1.
@senecacdot/github-url-parser:test: ELIFECYCLE Test failed. See above for more details.
@senecacdot/github-url-parser:test: ERROR: command finished with error: command (src/github-url-parser) pnpm run test exited (1)
command (src/github-url-parser) pnpm run test exited (1)
Note: all other tests pass with no problem
Tasks: 9 successful, 10 total
Cached: 0 cached, 10 total
Time: 14.851s
What should have happened:
Since It was a newly fetched codebase from main
I expected all tests to pass
How to reproduce it (as precise as possible):
For me it was as I described above:
pnpm install
pnpm test
Anything else we need to know?:
No
Environment:
- OS: OS X 12.6 (M1 Max)
A bit more info:
I did a bit of testing and it seems pnpm
skips some step during the installation process. Using npm
instead of pnpm
(only for github-url-parser
) to install dependencies seems to fix the issue. The service can be built and the tests pass with no issues.
@manekenpix Thank you it helped :)