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

Failed to install dependencies using npx tsdx create mylib #1160

Open
EpicYoshiMaster opened this issue Dec 10, 2022 · 0 comments
Open

Failed to install dependencies using npx tsdx create mylib #1160

EpicYoshiMaster opened this issue Dec 10, 2022 · 0 comments

Comments

@EpicYoshiMaster
Copy link

Current Behavior

Running npx tsdx create test with template basic

::::::::::: ::::::::  :::::::::  :::    :::
    :+:    :+:    :+: :+:    :+: :+:    :+:
    +:+    +:+        +:+    +:+  +:+  +:+
    +#+    +#++:++#++ +#+    +:+   +#++:+
    +#+           +#+ +#+    +#+  +#+  +#+
    #+#    #+#    #+# #+#    #+# #+#    #+#
    ###     ########  #########  ###    ###

√ Choose a template · basic
√ Created test
× Failed to install dependencies
Error: Command failed with exit code 1: yarn add @size-limit/preset-small-lib husky size-limit tsdx tslib typescript --dev
(node:18896) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
warning [email protected]: "test" is also the name of a node core module
warning tsdx > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning tsdx > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
warning tsdx > rollup-plugin-sourcemaps > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning tsdx > @rollup/plugin-commonjs > magic-string > [email protected]: Please use @jridgewell/sourcemap-codec instead
warning tsdx > jest > @jest/core > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning tsdx > jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning tsdx > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning tsdx > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning tsdx > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
warning tsdx > jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning tsdx > jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning tsdx > jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning tsdx > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > request > [email protected]: this library is no longer supported
warning tsdx > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > request > [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
error Couldn't find a package.json file in "C:\\Users\\UserName\\AppData\\Local\\Yarn\\cache\\npm-@types\\estree-1.0.0-5fb2e536c1ae9bf35366eed879e827fa59ca41c2"
yarn add v0.19.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

    at makeError (C:\Users\UserName\AppData\Local\npm-cache\_npx\99d8f6679c19e750\node_modules\execa\lib\error.js:59:11)
    at handlePromise (C:\Users\UserName\AppData\Local\npm-cache\_npx\99d8f6679c19e750\node_modules\execa\index.js:114:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async C:\Users\UserName\AppData\Local\npm-cache\_npx\99d8f6679c19e750\node_modules\tsdx\dist\index.js:173:9

Expected behavior

Packages successfully install and the create process continues.

Suggested solution(s)

N/A

Additional context

The issue is specific to yarn add tsdx --dev, testing other packages individually installed correctly.

Your environment

  System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 2.22 GB / 11.88 GB
  Binaries:
    Node: 18.12.1 - D:\Programs\nodejs\node.EXE
    Yarn: yarn install v0.19.1
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.40s. - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 9.1.2 - D:\Programs\nodejs\npm.CMD
  Browsers:
    Chrome: 108.0.5359.99
    Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.46)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    typescript: ^4.9.4 => 4.9.4
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