Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
fb2408ff
Commit
fb2408ff
authored
Jul 07, 2017
by
NGPixel
Committed by
Nicolas Giard
Jul 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: incorrect nodejs version check
parent
20a2e0e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
configure.js
server/configure.js
+3
-3
No files found.
server/configure.js
View file @
fb2408ff
...
...
@@ -80,10 +80,10 @@ module.exports = (port, spinner) => {
Promise
.
mapSeries
([
()
=>
{
const
semver
=
require
(
'semver'
)
if
(
!
semver
.
satisfies
(
semver
.
clean
(
process
.
version
),
'>=
4.6
.0'
))
{
throw
new
Error
(
'Node.js version is too old. Minimum is v
4
.6.0.'
)
if
(
!
semver
.
satisfies
(
semver
.
clean
(
process
.
version
),
'>=
6.9
.0'
))
{
throw
new
Error
(
'Node.js version is too old. Minimum is v
6
.6.0.'
)
}
return
'Node.js '
+
process
.
version
+
' detected. Minimum is v
4.6
.0.'
return
'Node.js '
+
process
.
version
+
' detected. Minimum is v
6.9
.0.'
},
()
=>
{
return
Promise
.
try
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment