gpt4 book ai didi

javascript - 警告查找 github :systemjs/systemjs 时出错

转载 作者:行者123 更新时间:2023-11-30 15:20:05 28 4
gpt4 key购买 nike

当我使用以下命令设置 jspm 安装时:

jspm init

然后它只询问我初始配置:

Would you like jspm to prefix the jspm package.json properties under jspm? [yes]:yes

Enter server baseURL (public folder path) [./]:app
Enter jspm packages folder [app/jspm_packages]:
Enter config file path [app/config.js]:
Configuration file app/config.js doesn't exist, create it? [yes]:yes
Enter client baseURL (public folder URL) [/]:
Do you wish to use a transpiler? [yes]:no

紧接着,我收到此错误消息:

warn Error on lookup for github:systemjs/systemjs TypeError: "timeout" must be an unsigned integer at validateTimeout (child_process.js:612:11) at Object.exports.execFile (child_process.js:178:3) at exports.exec (child_process.js:136:18) at module.exports (/usr/local/lib/node_modules/jspm/node_modules/jspm-github/exec-git.js:64:5) at /usr/local/lib/node_modules/jspm/node_modules/jspm-github/github.js:382:7 at initializePromise (/usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:588:5) at new Promise (/usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:1076:31) at GithubLocation.lookup (/usr/local/lib/node_modules/jspm/node_modules/jspm-github/github.js:381:12) at /usr/local/lib/node_modules/jspm/lib/registry.js:117:30 at tryCatch (/usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:538:12) at invokeCallback (/usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:553:13) at /usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:628:16 at flush (/usr/local/lib/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:2373:5) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)

err

err Error downloading loader files.

err

不确定那里发生了什么。所以我来这里寻找一些线索。

最佳答案

在尝试了太多之后,发现是怎么回事。我来了,碰巧 Jspm 没有问题,但我的 Node 和 Npm 版本是预发布的(这似乎影响了 Jspm 注册表)。我使用的是 NodeJs 8.0.0。无论如何,如果有人坚持同样的做法,他/她应该知道回到

node v6.10.3 (npm v3.10.10) versions

解决这个小问题。

对我有用,下面的命令:

brew update
brew install nvm
source $(brew --prefix nvm)/nvm.sh (adding to ~/.profile)

nvm install 6.10.3

更多信息this是一篇关于它的优秀文章

关于javascript - 警告查找 github :systemjs/systemjs 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43863892/

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