Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'psl' when trying to build. #288

Open
latenightgames opened this issue Mar 22, 2021 · 0 comments
Open

Cannot find module 'psl' when trying to build. #288

latenightgames opened this issue Mar 22, 2021 · 0 comments

Comments

@latenightgames
Copy link

I'm trying to build Greenworks with the latest versions of Node and Electron, using electron-rebuild, and I'm getting this error. I've been able to build it fine on all previous versions. Any idea? psl is definitely installed, of course.

Full stack trace:

cannot execute cause=exit status 7
errorOut=npm ERR! code 7
npm ERR! path E:\digitalburn\projects\cyberpunkdreams\repo\cpd-engine\node_modules\greenworks
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack Error: Cannot find module 'psl'
npm ERR! gyp ERR! stack Require stack:
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\cookie.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\cookies.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\node-gyp.js
npm ERR! gyp ERR! stack - C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
npm ERR! gyp ERR! stack at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:768:27)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:995:19)
npm ERR! gyp ERR! stack at require (node:internal/modules/cjs/helpers:92:18)
npm ERR! gyp ERR! stack at Object. (C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js:32:11)
npm ERR! gyp ERR! stack at Module._compile (node:internal/modules/cjs/loader:1091:14)
npm ERR! gyp ERR! stack at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
npm ERR! gyp ERR! stack at Module.load (node:internal/modules/cjs/loader:971:32)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:812:14)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:995:19)
npm ERR! gyp ERR! System Windows_NT 10.0.19041
npm ERR! gyp ERR! command "E:\digitalburn\projects\cyberpunkdreams\repo\cpd-engine\node_modules\node\bin\node.exe" "C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\digitalburn\projects\cyberpunkdreams\repo\cpd-engine\node_modules\greenworks
npm ERR! gyp ERR! node -v v15.10.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Rob\AppData\Local\npm-cache\_logs\2021-03-22T02_06_12_347Z-debug.log

                command='C:\server\nodejs\node.exe' 'C:\Users\Rob\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js' rebuild [email protected] [email protected]
                workingDir=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant