gpt4 book ai didi

node.js - Npm 安装错误 : Path must be a string. 收到'+检查(路径)

转载 作者:太空宇宙 更新时间:2023-11-04 01:49:57 25 4
gpt4 key购买 nike

我正在尝试通过 npm install 安装 Node.js 应用,但收到错误,但不知道如何解决:

Node -> v8.11.1

Npm -> 5.6.0

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/gifsicle-bin/v0.1.7/vendor/osx/gifsicle',
name: 'gifsicle',
os: 'darwin' }

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/jpegtran-bin/v0.2.8/vendor/osx/jpegtran',
name: 'jpegtran',
os: 'darwin' }

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/optipng-bin/v0.3.11/vendor/osx/optipng',
name: 'optipng',
os: 'darwin' }

最佳答案

您是否尝试过使用双引号,用“”而不是''将所有内容括起来。

关于node.js - Npm 安装错误 : Path must be a string. 收到'+检查(路径),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50091755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com