Closed
Description
when I run it - parameter "version" === undefined
Error: gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@6.9.4 | linux | x64
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot read property 'length' of undefined
gyp ERR! stack at parse (/home/alexander/www/electron/project-name/node_modules/semver/semver.js:239:14)
gyp ERR! stack at Function.valid (/home/alexander/www/electron/project-name/node_modules/semver/semver.js:255:11)
gyp ERR! stack at processRelease (/home/alexander/www/electron/project-name/node_modules/node-gyp/lib/process-release.js:16:25)
gyp ERR! stack at configure (/home/alexander/www/electron/project-name/node_modules/node-gyp/lib/configure.js:35:17)
gyp ERR! stack at Object.self.commands.(anonymous function) [as configure] (/home/alexander/www/electron/project-name/node_modules/node-gyp/lib/node-gyp.js:55:37)
gyp ERR! stack at run (/home/alexander/www/electron/project-name/node_modules/node-gyp/bin/node-gyp.js:87:30)
gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:67:7)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:98:9)
For fix it I just add code above into function function parse(version, loose) {
if(version === undefined) {
return null;
}
Metadata
Metadata
Assignees
Labels
No labels