2

我正在尝试将滑块添加到反应应用程序中,因此我尝试安装 splide js,但是在使用此命令安装库时我遇到npm install @splidejs/react-splide了错误。会有什么问题?

PS E:\Learn React JS\haribaba.github.io\client> npm install @splidejs/react-splide
Unrecognized token in source text.
At line:1 char:13
+ npm install  <<<< @splidejs/react-splide
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnrecognizedToken

错误图

在此处输入图像描述

4

1 回答 1

1

Powershell 正在解析@。尝试使用这样的引号:

npm install "@splidejs/react-splide"
于 2021-07-09T14:12:35.817 回答