gpt4 book ai didi

node.js - [ERR_INVALID_ARG_TYPE] : The "path" argument must be of type string. 收到的类型未定义,Mo队

转载 作者:太空宇宙 更新时间:2023-11-03 23:55:32 24 4
gpt4 key购买 nike

npm start 每当使用 ^2.0.0 版本的 mountebank 运行 mountebank 服务器时都会出现错误

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.join (path.js:1147:7)
at loadCustomProtocols (./node_modules/mountebank/src/mountebank.js:102:25)
at loadProtocols (./mountebank/node_modules/mountebank/src/mountebank.js:134:27)
at Object.create (./mountebank/node_modules/mountebank/src/mountebank.js:169:21)

Index.js

const mb = require('mountebank')
const settings = require('./settings');
const helloService = require('./hello-service')

const mbServerInstance = mb.create({
port: settings.ports,
pidfile: '../mb.pid',
logfile: '../mb.log',
portofile: '../protofile.json',
ipWhitelist: ['*']
});


mbServerInstance.then(function() {
helloService.addService();
});

引用链接:How to fix: 'The "path" argument must be of type string. Received type undefined' when running 'vue add vuetify'

npm uninstall -g @vue/cli
npm install -g @vue/cli

最佳答案

您似乎拼错了“proto file”或“portofile”,这就是触发错误的参数。

关于node.js - [ERR_INVALID_ARG_TYPE] : The "path" argument must be of type string. 收到的类型未定义,Mo队,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57387663/

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