任何人都可以幫我解決安裝mongoose.js時遇到的這個錯誤嗎?我試圖安裝Mongoose.js,但編譯器似乎無法找到Python。npm安裝mongoose在windows 7上得到錯誤
C:\Users\Administrator.GO-JOKE-PC>npm install mongoose
\
> [email protected] install C:\Users\Administrator.GO-JOKE-PC\node_modules\mon
e\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos
> (node-gyp rebuild) || (exit 0)
C:\Users\Administrator.GO-JOKE-PC\node_modules\mongoose\node_modules\mongodb
e_modules\mongodb-core\node_modules\kerberos>if not defined npm_config_node_
(node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node
ules\node-gyp\bin\node-gyp.js" rebuild) else (node rebuild)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm
e_modules\node-gyp\lib\configure.js:114:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\
-gyp\lib\configure.js:69:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator.GO-JOKE-PC\node_modules\mongoose\node_mo
s\mongodb\node_modules\mongodb-core\node_modules\kerberos
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
[email protected] node_modules\mongoose
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected]
10)
C:\用戶\ Administrator.GO玩笑-PC>
您是否看過錯誤?它說「找不到Python可執行文件」。你有安裝python嗎? – StillLearnin