2017-11-23 27 views
0

私はWindowsコンピュータにグローバルにchimpをインストールしようとしていましたが、成功できませんでした。ここに私が示されたエラーがあります。誰もこのことについて私を助けてくれますか?Windows上でnpmのアクセス許可を修正する方法

C:\Users\Shahin>npm install -g chimp 
npm WARN deprecated [email protected]: Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated [email protected]: Use uuid module instead 
C:\Users\Shahin\AppData\Roaming\npm\chimp -> C:\Users\Shahin\AppData\Roaming\npm\node_modules\chimp\bin\chimp.js 

> [email protected] install C:\Users\Shahin\AppData\Roaming\npm\node_modules\chimp\node_modules\fibers 
> node build.js || nodejs build.js 


C:\Users\Shahin\AppData\Roaming\npm\node_modules\chimp\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\Users\Shahin\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release) else (node "" rebuild --release) 
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 (C:\Users\Shahin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) 
gyp ERR! stack  at PythonFinder.<anonymous> (C:\Users\Shahin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) 
gyp ERR! stack  at C:\Users\Shahin\AppData\Roaming\npm\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.15063 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Shahin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release" 
gyp ERR! cwd C:\Users\Shahin\AppData\Roaming\npm\node_modules\chimp\node_modules\fibers 
gyp ERR! node -v v8.9.1 
gyp ERR! node-gyp -v v3.6.2 
gyp ERR! not ok 
node-gyp exited with code: 1 
Please make sure you are using a supported platform and node version. If you 
would like to compile fibers on this machine please make sure you have setup your 
build environment-- 
Windows + OS X instructions here: https://github.com/nodejs/node-gyp 
Ubuntu users please run: `sudo apt-get install g++ build-essential` 
Alpine users please run: `sudo apk add python make g++` 
'nodejs' is not recognized as an internal or external command, 
operable program or batch file. 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\chimp\node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 

npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] install: `node build.js || nodejs build.js` 
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. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\Shahin\AppData\Roaming\npm-cache\_logs\2017-11-23T12_22_34_584Z-debug.log 

私はubuntuのチュートリアルをいくつか見てきました。 Windowsのためにこれを修正する方法を知らない。

+1

'Python実行ファイルが見つかりません" python "'あなたがPythonをインストールしていないか、PythonがWindows PATHに正しく設定されていないと思います。ところで、こんにちは: - D – Jankapunkt

答えて

1

ネイティブモジュールのコンパイル用のツールチェーンがインストールされていないようです。ほとんどのnpmモジュールは純粋なjsなので、あなたはこれらの問題にぶつからず、いくつかはインストール時にコンパイルする必要があります。ツールチェーンをインストールする

最も簡単な方法は、windows-build-tools

を開き、管理者レベルのコマンドプロンプトを使用することですし、実行します。

npm install --global windows-build-tools 

それは長い時間がかかるだろうが、あなたが必要なすべてをインストールし、へのNPMのためにそれをスコープ

関連する問題