查找 github:systemjs/systemjs 时警告错误
warn Error on lookup for github:systemjs/systemjs
当我使用以下命令设置 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。无论如何,如果有人坚持同样的做法,he/she 应该知道回到
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
更多信息 是一个很好的post关于它
当我使用以下命令设置 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。无论如何,如果有人坚持同样的做法,he/she 应该知道回到
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
更多信息