programing

버전 4.0.1 이후 create-module-app이 작동하지 않음

closeapi 2023. 3. 2. 22:17
반응형

버전 4.0.1 이후 create-module-app이 작동하지 않음

★★★★★★★★★★★★★★★★★★★★★★를 인스톨 해 보았다.create-react-app를 사용합니다.npm i create-react-app,npx create-react-app new-app ★★★★★★★★★★★★★★★★★」npm init react-app new-app하지만 다음 오류 메시지가 계속 나타납니다.

최신 릴리스(4.0.1)보다 늦은 create-react-app 4.0.0을 실행하고 있다.Create React App의 글로벌 설치를 더 이상 지원하지 않습니다.

어떻게 하면 고칠 수 있을까요?

이 방법은 효과가 있었습니다.

npx create-react-app@latest your-project-name --use-npm

의사들에 따르면create-react-app를 글로벌하게 인스톨 하지 말아 주세요.

」를 인스톨 하고 는, 「 」create-react-app를 하여 글로벌하게npm install -g create-react-app 「 」를 를 언인스톨 을 추천합니다.npm uninstall -g create-react-app ★★★★★★★★★★★★★★★★★」yarn global remove create-react-app 확실하게 npx는 항상 최신 버전을 사용합니다.

이는 받은 오류 메시지에도 기재되어 있습니다.

최신 릴리스(4.0.1)보다 늦은 create-react-app 4.0.0을 실행하고 있다.Create React App의 글로벌 설치를 더 이상 지원하지 않습니다.

해야 합니다.create-react-appnpm uninstall -g create-react-app.

리액트 때마다 리액트 앱을 리액트한다.create-react-app명령어를 사용합니다.

지금 하고 있는 에러를 하려면 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,create-react-app글로벌하게 npm을 업데이트하고 캐시를 클리어한 후 앱 생성을 재시도합니다.

단말기에서 다음을 실행합니다.

npm uninstall -g create-react-app && npm i -g npm@latest && npm cache clean -f && npx create-react-app@latest my-app --use-npm

받았습니다

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

그래서 저는 그냥 명시적인 버전으로 패키지를 호출했습니다.

npx create-react-app@5.0.0 app-name

v4.0.2가 출시된 후 저도 이 문제에 직면했습니다.

이들은 이에 대해 언급했다.

」를 인스톨 하고 는, 「 」create-react-app를 하여 글로벌하게npm install -g create-react-app 「 」를 를 언인스톨 을 추천합니다.npm uninstall -g create-react-app ★★★★★★★★★★★★★★★★★」yarn global remove create-react-app 확실하게 npx는 항상 최신 버전을 사용합니다.

다음 절차에 따라 문제를 해결했습니다.

  1. 「」를 언인스톨 .create-react-app.1 v4.0.1:

    # for npm:
    npm uninstall -g create-react-app
    
    # for yarn:
    yarn global remove create-react-app
    
  2. .create-react-app이 작업을 수행하지 않으려면 3단계로 이동하십시오.이 작업을 수행하려면 글로벌플래그를 사용하지 않고 v4.0.2를 설치합니다.-g ★★★★★★★★★★★★★★★★★」--global

    # for npm:
    npm i create-react-app
    
    # for yarn:
    yarn add create-react-app
    
  3. 이제 다음 명령을 사용하여 새 React 앱을 만들 수 있습니다.

    # for npx:
    npx create-react-app my-app
    
    # for npm:
    npm init react-app my-app
    
    # for yarn:
    yarn create react-app my-app
    

, 이 를 됩니다.create-react-app글로벌하게 설치하고 다시 글로벌하게 설치합니다.

명령어 언인스톨:

npm uninstall -g create-react-app

설치 명령:

npx create-react-app my-app

오래된 npm 버전(npm 버전< 5.2)을 사용하고 있는 경우는, 다음의 커맨드를 사용합니다.

npm install -g create-react-app

그것이 내 문제를 해결해주길 바란다.

NPX 업데이트는 나에게 효과가 있었다.이 페이지의 제안은 효과가 없었지만 기여했을 수 있습니다.

npm update npx

나에게 효과가 있었던 것은, 다음과 같습니다.

npm uninstall -g create-react-app 

그 후:

npm i create-react-app # or yarn add create-react-app

노드 버전도 업데이트했습니다.

npm을 통해 create-react-app을 글로벌하게 제거하고 글로벌플래그를 사용하지 않고 재설치하는 것은 나에게 효과가 없었습니다.

npm uninstall -g create-react-app
npm install create-react-app

노드 버전 15.2.0에 있었습니다.nvm을 통해 최신 안정 노드 버전 15.3.0으로 업그레이드했습니다.

nvm install node

그런 다음 create-react-app을 다시 설치했습니다(글로벌플래그 없음).

npm install create-react-app

그리고 새로운 리액트 앱을 성공적으로 만들 수 있었습니다.

npx create-react-app my-app

- : create - -- app 。확실히 하자면 create-react-app을 글로벌하게 제거한 후 npx를 통해 앱을 만들 수 없게 되어 동일한 원본 오류 메시지를 받았습니다.지금까지 제가 찾은 최고의 해결책은npm install -g npm@latest이를 통해 npm 버전을 7.0.14 dev 빌드에서 6.14.9 LTS 빌드로 다운그레이드하여 문제없이 npx를 통해 리액트 앱을 생성할 수 있게 되었습니다.

 npm uninstall -g create-react-app

uninstall 명령어는 정상적으로 실행되었지만 create-react-app을 제거할 수 없었기 때문에 몇 번이고 같은 오류가 발생하였습니다.

으로 겨우 .npx create-react-app@latest my-app --template typescript

★★★ create-react-app > 4.0.1

npm

npm init react-app my-app

실타래

yarn create react-app my-app

시작하기 | 리액트 앱 문서 만들기

nvm을 하는 npx create-react-app my-app이했습니다:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.2).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

nvm 글로벌디렉토리에 create-react-app이 글로벌하게 설치되어 있지 않은 것을 확인했습니다.

패키지 버전을 지정하여 문제를 해결했습니다.

npx create-react-app@4.0.2 my-app

나는 내 npm 버전에 문제가 있었다.그래서 이렇게 했어요.

npm install npm@latest -g

, 이제npx create-react-app app_name

n을 사용하여 안정적인 최신 버전의 노드로 다운그레이드해야 동작합니다.

sudo n stable

참고로 글로벌하게 설치한 적은 없습니다.노드를 업그레이드한 후에 이 문제가 발생했을 뿐입니다.

이 에러에는, 다음의 2개의 다른 원인이 있습니다.

  1. 글로벌하게 .create-react-app이 설치되어 .확인하세요.npm list -g --depth 0이 경우 오류 메시지의 지시에 따라 글로벌하게 제거합니다.

  2. 「v15.0.0+」로 설정합니다. NVM으로 합니다.nvm use --lts그런 다음 create-module-app을 실행합니다.그 후 v15.0.0+로 전환하여 작업을 계속할 수 있습니다.(NVM이 설치되어 있지 않은 경우 다음 절차를 따릅니다.https://github.com/nvm-sh/nvm)

저는 같은 에러가 났는데create-react-app가 글로벌하지 않은 부모 디렉토리에 설치되었습니다. 뛰었어npm uninstall create-react-app★★★★★★★★★★★★★★★★★ -g깃발을 들고 효과가 있었어요

Windows에서 Git Bash를 사용하면 오늘 같은 문제가 발생합니다.

npx create-react-app appname 

를 사용하여 글로벌 설치를 제거한 후에도 작동하지 않습니다.

npm uninstall -g create-react-app

문제를 해결한 것은 다음 명령어로 npm 캐시를 청소하는 것이었습니다.

npm cache clean -f

이건 나한테 효과가 있었어.

sudo npm uninstall create-react-app -g

sudo npm install create-react-app@5.0.0 -g

npx create-react-app my-app

파티에 늦은 건 알지만, 당신을 도울 수 있는 제 의견입니다.이렇게 해서 만든 거야

글로벌 create-react-app 설치 제거

npm uninstall -g create-react-app

다음으로 npx 캐시를 클리어합니다.

npx clear-npx-cache

응용 프로그램을 만들어 보십시오. create-react-app을 지원하지 않습니다.라는 오류가 계속 나타나면 디렉토리를 변경하여 응용 프로그램을 만듭니다.

달려.

 npx create-react-app my-app

이게 내가 이걸 작동하게 만든 방법이야

나는 얼마 전에 같은 문제에 직면했다.

npx create-react-app@latest app-name 

나를 위해 일했다

해결책 1: 다음 명령을 사용하여 노드 패키지 매니저를 업데이트합니다.

npm install -g npm@latest
npx create-react-app my-app

해결책 2: PowerShell을 관리자로 실행하여 명령을 실행합니다.이 방법으로는 안 되는 것

npm uninstall -g create-react-app
npm install -g create-react-app
//OR
npx create-react-app my-app

솔루션 3:영구적인 해결책은 node.jsNPM제거하고 다시 설치하는 것입니다.

즐거운 시간 되세요.

다음을 사용합니다.

npm install create-react-app

나는 오늘 이것을 우연히 만났고 나의 근본 원인은 매우 드물 것 같지만 아마도 다른 누군가에게 도움이 될 것이다.

를 npm으로 했습니다..npmrc제 일은 그걸 사용해야 해요. ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★4.0.1그리고 뭔가create-react-app must 、 home 해야 합니다.

되어 있는 는, 「」를 합니다.npm view create-react-app최신 버전을 확인합니다.

Github의 문제를 조금 살펴본 후 이 문제에 대한 해결책을 찾았습니다.이 문제는 노드나 npm을 다운그레이드할 필요가 없습니다.

WSL2는 우분투의 우분투입니다..0.0)를 사용하여 캐시하고 있는 합니다.npm 은 npx(v4.0.0)를 사용하면 .npm view create-react-app.

가 "npm"에 "npm" 캐시를 찾을 수 .~/.npm/_npx/폴더는 이전에 npx를 사용한 모든 글로벌 설치에서 해시된 이름을 가진 폴더를 찾을 수 있습니다.

, , 예를 들어 '나', '나', '나', '나'와 같이 보면,cat [hash]/package.jsoncreate-create-syslog-app이 ."create-display-app으로 "display-app.json" 파일입니다.4.0.1- 그 후 노드 모듈에서 제거한다.rm -rf [hash]/node_modules/create-react-app.

뛰려고 npx create-react-app my-app정상적으로 'create-module-app'을 설치하라는 메시지가 표시되며 정상적으로 동작할 것입니다.npx는 'create-contract-app'을 사용합니다.npm npm npm npm npm の pmpm 。

Windows 또는 Mac을 사용하는 경우 캐시의 위치를 파악해야 하지만 나머지 단계는 동일합니다.

create-contract-application을 않고 create-contract-application을 했습니다.npm uninstall -g create-react-app그리고 나는 했다.npm install create-react-app

저도 같은 문제에 부딪혔는데, 오류가 설명해야 할 만큼 명확하지 않아요.npx 자체 업데이트로 수정했습니다.

★★★★★★★를 입력해 .npm update npx참の참

에 ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ, ㄴ.npx create-react-app "your preferred project name"리액션 프로젝트를 만듭니다.

create-react-app도 실에서 글로벌하게 제거했습니다.

npm uninstall create-react-app -g

재설치된 create-react-app

npm i create-react-app

또는 다음 방법이 있습니다.

npm create-react-app@latest my-app
npm create-react-app@4.0.2 my-app

다른 답은 통하지 않았다.예를 들어 글로벌하게 제거하려고 하면 제거할 수 있지만 오류가 계속 발생합니다.이는 노드의 신규 설치에서도 지속되었습니다.

다만, 다음과 같은 것이 간단해 보여, 나에게 있어서 효과가 있었습니다.

  1. 앱을 생성할 새 폴더로 이동하여 앱이 이미 create-react-app에 대해 인식하지 않도록 합니다.
  2. yarn add create-react-app
  3. yarn run create-react-app myapp

해결책:

순서 1: create-react-app 패키지를 글로벌하게 삭제합니다.

npm uninstall -g create-react-app

순서 2: create-react-app 패키지를 글로벌하게 다시 설치합니다.

npm install -g create-react-app

버전 5.0.1 이후가 인스톨 됩니다.올바르게 인스톨 되어 있는지를 확인하려면 , 단말기로 다음의 순서를 실행합니다.

npm list -g

결과:

단말기의 응답

그런 다음 다음 다음 문장을 사용하여 리액트 앱을 다시 만들어 보십시오.

npx create-react-app <project_name>

그리고 효과가 있을 거야.

이건 내게 효과가 있었다.

npm uninstall -g create-react-app

그리고나서

npm install -g create-react-app

node.js를 제거하고 Windows instra를 사용하여 다시 설치했습니다.npx create-react-app 명령어는 매우 효과적입니다.

언급URL : https://stackoverflow.com/questions/64963796/create-react-app-is-not-working-since-version-4-0-1

반응형