最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - import fs.default.cp Sync is not a function - Stack Overflow

programmeradmin1浏览0评论

Tried to install TurboRepo, but after selecting npm got this error.

   >>> TURBOREPO

>>> Wele to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? ./my-turborepo
? Which package manager do you want to use? npm

Aborting installation.
Unexpected error. Please report it as a bug:   
TypeError: import_fs.default.cpSync is not a function
    at run (C:\Users\singh.yogesh\AppData\Roaming\npm-cache\_npx\5504\node_modules\create-turbo\dist\index.js:338:21)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Tried to install TurboRepo, but after selecting npm got this error.

   >>> TURBOREPO

>>> Wele to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? ./my-turborepo
? Which package manager do you want to use? npm

Aborting installation.
Unexpected error. Please report it as a bug:   
TypeError: import_fs.default.cpSync is not a function
    at run (C:\Users\singh.yogesh\AppData\Roaming\npm-cache\_npx\5504\node_modules\create-turbo\dist\index.js:338:21)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Share Improve this question asked Oct 11, 2022 at 7:11 Yogesh90360Yogesh90360 111 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

if you upgrade to node version 16, this error won't appear.

发布评论

评论列表(0)

  1. 暂无评论