我正在使用jspm注册表配置github命令行,如下所示
jspm注册表配置github-是githubusername令牌
当我运行jspm安装程序时,会出现以下错误
[command] jspm install
2019-08-08T11:50:50.4314572Z 2019-08-08T11:50:50.4314916Z err TypeError:第一个参数必须是字符串,Buffer,ArrayBuffer,Array或类似数组的对象。 2019-08-08T11:50:50.4315059Z at Function.Buffer.from(buffer.js:202:9) 2019-08-08T11:50:50.4315191Z在新缓冲区(buffer.js:158:17) 2019-08-08T11:50:50.4315329Z at encodeCredentials(D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm-github \ github.js:55:14) 2019-08-08T11:50:50.4315529Z在新的GithubLocation(D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm-github \ github.js:118:19) 2019-08-08T11:50:50.4315714Z at Object.exports.load(D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm \ lib \ registry.js:73:56) 2019-08-08T11:50:50.4315879Z在新的RegistryPath(D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm \ lib \ config \ loader.js:264:33) 2019-08-08T11:50:50.4316048Z at Config.read(D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm \ lib \ config \ loader.js:127:26) 2019-08-08T11:50:50.4316195Z在D:\ Agent_1_work \ 22 \ s \ node_modules \ jspm \ lib \ config.js:100:26 2019-08-08T11:50:50.4316318Z在 2019-08-08T11:50:50.4316436Z在process._tickCallback(内部/进程/next_tick.js:188:7) 2019-08-08T11:50:50.4316571Z at Function.Module.runMain(module.js:695:11) 2019-08-08T11:50:50.4316690Z启动时(bootstrap_node.js:191:16) 2019-08-08T11:50:50.4316801Z在bootstrap_node.js:612:3 2019-08-08T11:50:50.4318485Z 2019-08-08T11:50:50.4319909Z err无法加载注册表github 2019-08-08T11:50:50.4320036Z 2019-08-08T11:50:50.4320175Z警告安装更改未保存。
但是当我使用相同的凭据并逐行进行操作时,它可以工作。我想在构建步骤中添加命令行。 知道为什么它不起作用吗?
谢谢