Closed henon closed 5 years ago
I had python 3.6 installed by the way. after installing Python 2.7
npm install
runs through and the app is startable. Maybe all required dependencies should be noted somewhere? in development.md for instance?
This repo doesn't have anything to do with your issue
I know, not directly. Some component obviously needs Python. So if Python is not installed, this project fails to build.
So why not state all the dependencies of the project somewhere obvious?
You need Python and a C++ to be able to compile native modules. Normally node-sass fetches the binary for you, if you are on a supported platform. But if it's failed, you'll need to compile them manually, which is why Python is required here. Anyway, it has nothing to do with vue.
Thanks for the clarification and thanks for this project! It really helped me discover how awesome Vue really can be.
Below my install and start log with clean a install of npm. It fails to start. What am I doing wrong?
E:>cd vue-admin-master
E:\vue-admin-master>npm -v 5.5.1
E:\vue-admin-master>node -v v8.9.1
E:\vue-admin-master>npm install npm WARN deprecated babel-preset-es2015@6.24.1: ? Thanks for using Babel: we re commend using babel-preset-env now: please read babeljs.io/env to update! npm WARN deprecated feature-filter@2.2.0: This package has been merged into the 'mapbox-gl-style-spec' package npm WARN deprecated mapbox-gl-function@1.3.0: This package has been merged with the 'mapbox-gl-style-spec' package npm WARN deprecated point-geometry@0.0.0: This module has moved: please install @mapbox/point-geometry instead npm WARN deprecated shelf-pack@1.1.0: This module is now under the @mapbox names pace: install @mapbox/shelf-pack instead npm WARN deprecated whoots-js@2.1.0: This module is now under the @mapbox namesp ace: install @mapbox/whoots-js instead npm WARN deprecated vector-tile@1.3.0: This module has moved: please install @ma pbox/vector-tile instead npm WARN deprecated unitbezier@0.0.0: This module has moved: switch to @mapbox/u nitbezier npm WARN deprecated husl@5.0.3: Project renamed to HSLuv npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox nam espace: install @mapbox/geojson-area instead
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.1 3.1/win32-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win 32-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
or configure npm proxy via
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7 .2/win32-x64-57_binding.node Download complete ] - : Binary saved to E:\vue-admin-master\node_modules\node-sass\vendor\win32-x64-57\b inding.node Caching binary to C:\Users\Henon\AppData\Roaming\npm-cache\node-sass\4.7.2\win32 -x64-57_binding.node
Building: C:\Program Files\nodejs\node.exe E:\vue-admin-master\node_modules\node -gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsas s_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ 'C:\Program Files\nodejs\node.exe', gyp verb cli 'E:\vue-admin-master\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.6.2 gyp info using node@8.9.1 | 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 (E:\vue-admin-master\node_modules
\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at E:\vue-admin-master\node_modules\graceful-fs\polyfills.js:
284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "E:\vue-admin-master\no
de_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "
--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\vue-admin-master\node_modules\wysiwyg.css\node_modules\node-sass
which
failed Error: not found: python2 gyp verbwhich
failed at getNotFoundError (E:\vue-admin-master\node_module s\which\which.js:13:12) gyp verbwhich
failed at F (E:\vue-admin-master\node_modules\which\which.j s:68:19) gyp verbwhich
failed at E (E:\vue-admin-master\node_modules\which\which.j s:80:29) gyp verbwhich
failed at E:\vue-admin-master\node_modules\which\which.js:8 9:16 gyp verbwhich
failed at E:\vue-admin-master\node_modules\isexe\index.js:4 2:5 gyp verbwhich
failed at E:\vue-admin-master\node_modules\isexe\windows.js :36:5 gyp verbwhich
failed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhich
failed python2 { Error: not found: python2 gyp verbwhich
failed at getNotFoundError (E:\vue-admin-master\node_module s\which\which.js:13:12) gyp verbwhich
failed at F (E:\vue-admin-master\node_modules\which\which.j s:68:19) gyp verbwhich
failed at E (E:\vue-admin-master\node_modules\which\which.j s:80:29) gyp verbwhich
failed at E:\vue-admin-master\node_modules\which\which.js:8 9:16 gyp verbwhich
failed at E:\vue-admin-master\node_modules\isexe\index.js:4 2:5 gyp verbwhich
failed at E:\vue-admin-master\node_modules\isexe\windows.js :36:5 gyp verbwhich
failed at FSReqWrap.oncomplete (fs.js:152:21) gyp verbwhich
failed stack: 'Error: not found: python2\n at getNotFoundE rror (E:\vue-admin-master\node_modules\which\which.js:13:12)\n at F (E:\ vue-admin-master\node_modules\which\which.js:68:19)\n at E (E:\vue-admin- master\nodemodules\which\which.js:80:29)\n at E:\vue-admin-master\node modules\which\which.js:89:16\n at E:\vue-admin-master\node_modules\isexe \index.js:42:5\n at E:\vue-admin-master\node_modules\isexe\windows.js:36 :5\n at FSReqWrap.oncomplete (fs.js:152:21)', gyp verbwhich
failed code: 'ENOENT' } gyp verb check python checking for Python executable "python" in the PATH gyp verbwhich
succeeded python C:\Users\Henon\AppData\Local\Programs\Python\P ython36-32\python.EXE gyp verb check python versionC:\Users\Henon\AppData\Local\Programs\Python\Pyth on36-32\python.EXE -c "import platform; print(platform.python_version());"
retu rned: "3.6.0\r\n" gyp verb could not find "C:\Users\Henon\AppData\Local\Programs\Python\Python36-3 2\python.EXE". checking python launcher gyp verb could not find "C:\Users\Henon\AppData\Local\Programs\Python\Python36-3 2\python.EXE". 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 "C:\Users\Henon\AppData\Local \Programs\Python\Python36-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (E:\vue-admin-master\node_module s\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder.gyp ERR! node -v v8.9.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok Build failed with error code: 1 npm WARN Error: EPERM: operation not permitted, scandir 'E:\vue-admin-master\nod e_modules\wysiwyg.css\node_modules' npm WARN { Error: EPERM: operation not permitted, scandir 'E:\vue-admin-master\ node_modules\wysiwyg.css\node_modules' npm WARN stack: 'Error: EPERM: operation not permitted, scandir \'E:\vue-admi n-master\node_modules\wysiwyg.css\node_modules\'', npm WARN errno: -4048, npm WARN code: 'EPERM', npm WARN syscall: 'scandir', npm WARN path: 'E:\vue-admin-master\node_modules\wysiwyg.css\node_modules' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@3.13.1 postinstall:
node scripts/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.13.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Henon\AppData\Roaming\npm-cache_logs\2017-11-27T20_4939 006Z-debug.log
E:\vue-admin-master>npm run dev
[HPM] Proxy created: /MODApis -> http://dev.markitondemand.com webpack: wait until bundle finished: webpack: wait until bundle finished: /index.html webpack built aae45f5ad2d79f839235 in 17981ms Hash: aae45f5ad2d79f839235 Version: webpack 2.7.0 Time: 17981ms Asset Size Chunks Chunk Names 15.js 65.6 kB 15
assets/fonts/materialdesignicons-webfont.f540b42.eot 275 kB
assets/fonts/materialdesignicons-webfont.292b2f8.ttf 274 kB
assets/fonts/materialdesignicons-webfont.7f88c63.woff2 104 kB
assets/fonts/materialdesignicons-webfont.c28dbba.woff 135 kB
app vendor.js 1.15 MB 35 vendor
ERROR in ./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-37fa8aa7 ","scoped":false,"hasInlineConfig":true}!./~/sass-loader/lib/loader.js!./~/vue-l oader/lib/selector.js?type=styles&index=0!./client/App.vue Module build failed: undefined ^ File to import not found or unreadable: ~wysiwyg.css/wysiwyg.sass. Parent style sheet: stdin in E:\vue-admin-master\client\App.vue (line 65, column 1) @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":" data-v-37fa8aa7","scoped":false,"hasInlineConfig":true}!./~/sass-loader/lib/load er.js!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/App.vue 4:14-3 03 13:3-17:5 14:22-311 @ ./client/App.vue @ ./client/app.js @ ./client/index.js @ multi ./build/dev-client ./client/index.js Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 1.48 MB 0 webpack: Failed to compile.