Gyp ERR! configure error Installing on WIndows 10 Localhost


#1

I’m following this tutorial: https://www.youtube.com/watch?v=hnif644KVrM

Installing node.js and extract all ghost file, but I get error:

E:\0_SERVER_SETUP\app\Ghost\node_modules\dtrace-provider>if not defined npm_config_node_gyp (node "E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command “E:\0_SERVER_SETUP\nodejs\node.exe” “E:\0_SERVER_SETUP\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd E:\0_SERVER_SETUP\app\Ghost\node_modules\dtrace-provider
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

sqlite3@4.0.1 install E:\0_SERVER_SETUP\app\Ghost\node_modules\sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
[sqlite3] Success: “E:\0_SERVER_SETUP\app\Ghost\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node” is installed via remote

jsonpath@1.0.0 postinstall E:\0_SERVER_SETUP\app\Ghost\node_modules\jsonpath
node lib/aesprim.js > generated/aesprim-browser.js

npm notice created a lockfile as package-lock.json. You should commit this file.
added 764 packages in 62.549s

I’m beginner in node js

Thanks :slight_smile:


#2

I would suggest to run Ghost via a Docker container. Here is the setup I use https://github.com/firepress-org/ghostfire

Cheers!


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.