我正在尝试将 slider 添加到 React 应用程序中,因此我尝试安装 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
错误图片
最佳答案
Powershell 正在解析@。尝试使用这样的引号:
npm install "@splidejs/react-splide"
关于reactjs - 这个命令有问题,npm install @splidejs/react-splide?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68318143/