node.js - 安装 ['create-svelte@next'] 失败,代码为 1
问题描述
我是一个苗条的新手,并试图了解它,但我无法从一开始就建立这个项目。
当我键入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,但没有任何改变你能帮我解决这个问题吗?
解决方案
您需要独立更新 npm:
npm install -g npm@next
推荐阅读
- yaml - Endpoint Configuration type EDGE is not supported in this region
- oracle - 如何修复我的 oracle LCConnection 字符集覆盖警告消息
- sql - Pushing Date values from R to SQL Server table with missing values
- vba - 合并多个大文件时,MergeDocuments 会静默失败吗?
- typescript - Chrome 删除 url 参数
- linux - Run a bash script to shutdown tomcat from another directory
- opencv - 从 OpenCV 中的基本矩阵“recoverPose”后正确解释姿势(旋转和平移)
- kotlin - 组合列表
> 进入 Observable - >
- javascript - 无法将 javascript 中的 json api 正确打印到 html
- cqrs - Axon- 特定类型或特定 Id 的重播事件