【问题标题】:Install for [ 'create-svelte@next' ] failed with code 1安装 ['create-svelte@next'] 失败,代码为 1
【发布时间】:2021-09-12 17:49:05
【问题描述】:

我是一个苗条的新手,并试图了解它,但我无法从一开始就设置项目。

当我输入npm init svelte@next my-app 启动它时,它会在终端中引发错误,

C:\Users\Ermais Kidane\Documents\REACT>npm init svelte@next my-sveltekit-pokedex               
npm WARN npm npm does not support Node.js v14.15.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! code ENOLOCAL : info using node@v14.15.0
npm ERR! Could not install from "Kidane\AppData\Roaming\npm-cache\_npx\25760" as it does not contain a package.json file.
[..................] \ : info using node@v14.15.0
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ermais Kidane\AppData\Roaming\npm-cache\_logs\2021-06-30T12_26_34_849Z-debug.log
Install for [ 'create-svelte@next' ] failed with code 1

我更新了我的 nodeJs v16,但没有任何变化,请问你能帮我解决这个问题吗?

【问题讨论】:

    标签: node.js svelte svelte-component sveltekit


    【解决方案1】:

    你需要独立更新npm:

    npm install -g npm@next
    

    【讨论】:

      猜你喜欢
      • 2015-10-07
      • 1970-01-01
      • 1970-01-01
      • 2020-01-20
      • 2019-01-04
      • 2016-04-18
      • 2022-01-21
      • 2021-07-12
      • 2023-02-18
      相关资源
      最近更新 更多