Skip to content

Can not run #1618

@aiyadingya

Description

@aiyadingya

MacBook Pro (Retina, 13-inch, Early 2015)
node v8.9.1
npm v5.7.1

After running the npm start command, the following result appears:

aiyadingyadeMacBook-Pro:nodejs.org aiyadingya$ npm run start

> nodejs.org@ start /Users/aiyadingya/www/code/nodejs.org
> npm run serve


> nodejs.org@ serve /Users/aiyadingya/www/code/nodejs.org
> node server.js

[metalsmith] build/static started
[metalsmith] build/layouts started
http://localhost:8080/en/
[metalsmith] build/static finished: 136.254ms
[metalsmith] build/layouts finished: 1118.556ms
releases undefined
/Users/aiyadingya/www/code/nodejs.org/scripts/helpers/latestversion.js:15
  const match = releases.find((release) => !release.lts && semver.gte(release.version, '5.0.0'))
                         ^

TypeError: Cannot read property 'find' of undefined
    at Object.exports.current (/Users/aiyadingya/www/code/nodejs.org/scripts/helpers/latestversion.js:15:26)
    at loadVersions (/Users/aiyadingya/www/code/nodejs.org/build.js:268:34)
    at afterFetch (/Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node-version-data.js:46:14)
    at proxy (/Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node_modules/after/index.js:19:13)
    at /Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node-version-data.js:32:14
    at BufferList._callback (/Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node_modules/jsonist/jsonist.js:32:16)
    at BufferList.<anonymous> (/Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node_modules/bl/bl.js:16:14)
    at emitOne (events.js:116:13)
    at DestroyableTransform.emit (events.js:211:7)
    at ClientRequest.<anonymous> (/Users/aiyadingya/www/code/nodejs.org/node_modules/node-version-data/node_modules/hyperquest/index.js:13:19)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodejs.org@ serve: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodejs.org@ serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/aiyadingya/.npm/_logs/2018-04-07T10_16_15_864Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodejs.org@ start: `npm run serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodejs.org@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/aiyadingya/.npm/_logs/2018-04-07T10_16_15_904Z-debug.log
aiyadingyadeMacBook-Pro:nodejs.org aiyadingya$

and I open http://localhost:8080/en/ Show this page not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions