|
- C:\Users\admin>npm install -g ionic
- > spawn-sync@1.0.14 postinstall C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cross-spawn\node_modules\spawn-sync
- > node postinstall
- > node-sass@3.4.1 install C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass
- > node scripts/install.js
- Cannot download "https://github.com/sass/node-sass/releases/download/v3.4.1/win32-x64-46_binding.node":
- read ECONNRESET
- Hint: If github.com is not accessible in your location
- try setting a proxy via HTTP_PROXY, e.g.
- export HTTP_PROXY=http://example.com:1234
- or configure npm proxy via
- npm config set proxy http://example.com:8080
- npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"4.2.2","npm":"2.14.7"})
- npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.2.2","npm":"2.14.7"})
- > node-sass@3.4.1 postinstall C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass
- > node scripts/build.js
- ` C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\vendor\win32-x64-46\binding.node ` exists.
- testing binary.
- Problem with the binary.
- Manual build incoming.
- Building: C:\Program Files\nodejs\node.exe C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
- gyp info it worked if it ends with ok
- gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
- gyp verb cli 'C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\ionic\\node_modules\\ionic-app-lib\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
- gyp verb cli 'rebuild',
- gyp verb cli '--verbose',
- gyp verb cli '--libsass_ext=',
- gyp verb cli '--libsass_cflags=',
- gyp verb cli '--libsass_ldflags=',
- gyp verb cli '--libsass_library=' ]
- gyp info using node-gyp@3.0.3
- gyp info using node@4.2.2 | win32 | x64
- gyp verb command rebuild []
- gyp verb command clean []
- gyp verb clean removing "build" directory
- gyp verb command configure []
- gyp verb check python checking for Python executable "python2" in the PATH
- gyp verb `which` failed Error: not found: python2
- gyp verb `which` failed at F (C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:78:19)
- gyp verb `which` failed at E (C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:82:29)
- gyp verb `which` failed at C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:93:16
- gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:82:15)
- gyp verb `which` failed python2 [Error: not found: python2]
- gyp verb check python checking for Python executable "python" in the PATH
- gyp verb `which` failed Error: not found: python
- gyp verb `which` failed at F (C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:78:19)
- gyp verb `which` failed at E (C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:82:29)
- gyp verb `which` failed at C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:93:16
- gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:82:15)
- gyp verb `which` failed python [Error: not found: python]
- gyp verb could not find "python". guessing location
- gyp verb ensuring that file exists: C:\Python27\python.exe
- 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 failNoPython (C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:116:14)
- gyp ERR! stack at C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:71:11
- gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
- gyp ERR! System Windows_NT 10.0.10586
- gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\ionic\\node_modules\\ionic-app-lib\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
- gyp ERR! cwd C:\Users\admin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass
- gyp ERR! node -v v4.2.2
- gyp ERR! node-gyp -v v3.0.3
- gyp ERR! not ok
- Build failed
- npm ERR! Windows_NT 10.0.10586
- npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
- npm ERR! node v4.2.2
- npm ERR! npm v2.14.7
- npm ERR! code ELIFECYCLE
- npm ERR! node-sass@3.4.1 postinstall: `node scripts/build.js`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the node-sass@3.4.1 postinstall script 'node scripts/build.js'.
- npm ERR! This is most likely a problem with the node-sass package,
- npm ERR! not with npm itself.
- npm ERR! Tell the author that this fails on your system:
- npm ERR! node scripts/build.js
- npm ERR! You can get their info via:
- npm ERR! npm owner ls node-sass
- npm ERR! There is likely additional logging output above.
- npm ERR! Please include the following file with any support request:
- npm ERR! C:\Users\admin\npm-debug.log
复制代码 已经尝试了很多了,都是这样的错误。其他都已经成功安装-cordova,java等
|
|