0
安裝的NodeJS包在我的老流星版本時,我能夠與安裝swisseph的NodeJS包:獲取錯誤的Python版本嘗試與流星
npm install swisseph
但在當時,我不得不使用
var swisseph = Meteor.npmRequire('swisseph');
這是從
https://github.com/meteorhacks/npm
現在我讀了Meteorhacks不再ñ eeded。我的問題現在是我的應用程序取決於使用swisseph NODEjs包但我現在無法安裝它。
我收到以下錯誤:
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] install /Users/bliss/Documents/Coder/ReactMeteor/react-vedic/node_modules/swisseph
node-gyp rebuild
gyp ERR! configure error
gyp ERR! Error: Python executable "/Users/bliss/anaconda/bin/python" is v3.6.1, which is not supported by gyp.
gyp ERR! You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! at PythonFinder.failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! at ChildProcess.exithandler (child_process.js:262:7)
gyp ERR! at emitTwo (events.js:125:13)
gyp ERR! at ChildProcess.emit (events.js:213:7)
gyp ERR! at maybeClose (internal/child_process.js:897:16)
gyp ERR! at Socket.stream.socket.on (internal/child_process.js:340:11) gyp ERR! at emitOne (events.js:115:13)
gyp ERR! at Socket.emit (events.js:210:7)
gyp ERR! at Pipe._handle.close [as _onclose] (net.js:548:12)
gyp ERR! System Darwin 16.6.0
gyp ERR! command "/usr/local/Cellar/node/8.1.2/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/bliss/Documents/Coder/ReactMeteor/react-vedic/node_modules/swisseph
gyp ERR! node -v v8.1.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
如何使用這個節點程序包,即使它僅僅是在服務器端?
從很明顯,你必須把它指向Python'的'正確的版本錯誤。 – Styx