TypeScript-Vue-Example
TypeScript-Vue-Example copied to clipboard
install报错
error D:\learn\TypeScript-Vue-Example\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\learn\TypeScript-Vue-Example\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe D:\learn\TypeScript-Vue-Example\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 'D:\learn\TypeScript-Vue-Example\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 [email protected]
gyp info using [email protected] | 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 "C:\Users\shawang.windows-build-tools\python27" in the PATH
gyp verb which
failed Error: not found: C:\Users\shawang.windows-build-tools\python27
gyp verb which
failed at getNotFoundError (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:89:16
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb which
failed C:\Users\shawang.windows-build-tools\python27 { Error: not found: C:\Users\shawang.windows-build-tools\python27
gyp verb which
failed at getNotFoundError (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:89:16
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\learn\TypeScript-Vue-Example\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb which
failed stack:
gyp verb which
failed 'Error: not found: C:\Users\shawang\.windows-build-tools\python27\n at getNotFoundError (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:13:12)\n at F (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:68:19)\n at E (D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:80:29)\n at D:\learn\TypeScript-Vue-Example\node_modules\which\which.js:89:16\n at D:\learn\TypeScript-Vue-Example\node_modules\isexe\index.js:42:5\n at D:\learn\TypeScript-Vue-Example\node_modules\isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb which
failed code: 'ENOENT' }
gyp verb could not find "C:\Users\shawang.windows-build-tools\python27". checking python launcher
gyp verb could not find "C:\Users\shawang.windows-build-tools\python27". 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\shawang.windows-build-tools\python27", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:\learn\TypeScript-Vue-Example\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.