这个环境真的是伤不起了。。。。
老师说要培养全栈工程师,我真的佩服的五体投地啊。。。。css都可以一边做网站一边写,昨天搞sass搞通了,今天用Homestead以后又是各种花式报错。。。
yarn install v1.10.1
info No lockfile found.
[1/4] Resolving packages...
warning laravel-mix > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Br
owserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 co
uld fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browsersli
st 2 could fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7
.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from
installation.
[3/4] Linking dependencies...
warning "laravel-mix > img-loader@3.0.1" has unmet peer dependency "imagemin@^5.0.0 || ^6.0.0".
[4/4] Building fresh packages...
[-/2] ⠁ waiting...
error D:\HomeSteadCode\sample03\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\HomeSteadCode\sample03\node_modules\node-sass
Output:
Building: C:\Users\wongvio\scoop\apps\nodejs\current\node.exe D:\HomeSteadCode\sample03\node_modu
les\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:\\Users\\wongvio\\scoop\\apps\\nodejs\\current\\node.exe',
gyp verb cli 'D:\\HomeSteadCode\\sample03\\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.8.0
gyp info using node@10.12.0 | 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 getNotFoundError (D:\HomeSteadCode\sample03\node_modules\which\whi
ch.js:13:12)
gyp verb `which` failed at F (D:\HomeSteadCode\sample03\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\HomeSteadCode\sample03\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\HomeSteadCode\sample03\node_modules\which\whi
ch.js:13:12)
gyp verb `which` failed at F (D:\HomeSteadCode\sample03\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\HomeSteadCode\sample03\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\HomeSteadCode\sample03\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python2\n at getNotFoundError (D:\\HomeSteadCode
\\sample03\\node_modules\\which\\which.js:13:12)\n at F (D:\\HomeSteadCode\\sample03\\node_mod
ules\\which\\which.js:68:19)\n at E (D:\\HomeSteadCode\\sample03\\node_modules\\which\\which.j
s:80:29)\n at D:\\HomeSteadCode\\sample03\\node_modules\\which\\which.js:89:16\n at D:\\Hom
eSteadCode\\sample03\\node_modules\\isexe\\index.js:42:5\n at D:\\HomeSteadCode\\sample03\\nod
e_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Users\wongvio\AppData\Local\Programs\Python\Python37\python.
EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\wongvio\AppData\Local\Programs\Python\Python37\pyt
hon.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\wongvio\\scoop\\apps\\nodejs\\current\\node.exe" "D:\\HomeSteadCode\
\sample03\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--li
bsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\HomeSteadCode\sample03\node_modules\node-sass
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
推荐文章: