Node-sass, ошибки node-gyp, как исправить? - PullRequest
0 голосов
/ 25 мая 2018

После обновления заварки и переустановки узла возникает ошибка при настройке зависимостей.Подскажите, как решить эту проблему?

Приведенный ниже код не является полной ошибкой, есть только часть, поскольку существует ограничение на количество символов.

узел v10.2.1

PHP 7.2.6 (cli) (сборка: 25 мая 2018 г. 06:18:43) (NTS)

Python 2.7.10 (по умолчанию, 6 октября 2017 г., 22:29:07)

⟩ yarn install --save-dev
yarn install v0.15.1
warning frontend_pack@1.0.0: No license field
warning frontend_pack@1.0.0: Dependency "path" listed in "devDependencies" is the name of a built-in module
[1/4] ?  Resolving packages...
[2/4] ?  Fetching packages...
warning lodash@1.0.2: The engine "rhino" appears to be invalid.
[3/4] ?  Linking dependencies...
warning Unmet peer dependency "jquery@>=1.9.0".
[4/4] ?  Building fresh packages...
[1/1] ⠐ node-sass: not ok
[-/1] ⠐ waiting...
[-/1] ⠐ waiting...
[-/1] ⠐ waiting...
error /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/node-sass: Command failed.
Exit code: 1
Command: sh
Arguments: -c node scripts/build.js
Directory: /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/node-sass
Output:
Building: /usr/local/Cellar/node/10.2.1/bin/node /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/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 [ '/usr/local/Cellar/node/10.2.1/bin/node',
gyp verb cli   '/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/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@10.2.1 | darwin | 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 (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:182:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:182:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:13:12)\n    at F (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:68:19)\n    at E (/Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:80:29)\n    at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/which/which.js:89:16\n    at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/index.js:42:5\n    at /Users/Maxim/Projects/diod-market/Company/Bundle/CompanyBundle/Resources/static/node_modules/isexe/mode.js:8:5\n    at FSReqWrap.oncomplete (fs.js:182:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 10.2.1
gyp verb command install [ '10.2.1' ]
gyp verb install input version string "10.2.1"
gyp verb install installing version: 10.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.2.1
gyp verb ensuring nodedir is created /Users/Maxim/.node-gyp/10.2.1
gyp verb created nodedir /Users/Maxim/.node-gyp/10.2.1
gyp http GET https://nodejs.org/download/release/v10.2.1/node-v10.2.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v10.2.1/node-v10.2.1-headers.tar.gz
gyp verb extracted file from tarball include/node/android-ifaddrs.h
gyp verb extracted file from tarball include/node/common.gypi
gyp verb extracted file from tarball include/node/config.gypi
gyp verb extracted file from tarball include/node/node.h
gyp verb extracted file from tarball include/node/node_api.h
gyp verb extracted file from tarball include/node/node_api_types.h
gyp verb extracted file from tarball include/node/node_buffer.h
gyp verb extracted file from tarball include/node/node_object_wrap.h
gyp verb extracted file from tarball include/node/node_version.h
gyp verb extracted file from tarball include/node/pthread-barrier.h
gyp verb extracted file from tarball include/node/stdint-msvc2008.h
gyp verb extracted file from tarball include/node/tree.h
gyp verb extracted file from tarball include/node/uv-aix.h
gyp verb extracted file from tarball include/node/uv-bsd.h
gyp verb extracted file from tarball include/node/uv-darwin.h
gyp verb extracted file from tarball include/node/uv-errno.h
gyp verb extracted file from tarball include/node/uv-linux.h
gyp verb extracted file from tarball include/node/uv-os390.h
gyp verb extracted file from tarball include/node/uv-posix.h
gyp verb extracted file from tarball include/node/uv-sunos.h
gyp verb extracted file from tarball include/node/uv-threadpool.h
gyp verb extracted file from tarball include/node/uv-unix.h
gyp verb extracted file from tarball include/node/uv-version.h
gyp verb extracted file from tarball include/node/uv-win.h
gyp verb extracted file from tarball include/node/uv.h
gyp verb extracted file from tarball include/node/v8-inspector-protocol.h
gyp verb extracted file from tarball include/node/v8-inspector.h
gyp verb extracted file from tarball include/node/v8-platform.h
gyp verb extracted file from tarball include/node/v8-profiler.h
gyp verb extracted file from tarball include/node/v8-testing.h
gyp verb extracted file from tarball include/node/v8-util.h
gyp verb extracted file from tarball include/node/v8-value-serializer-version.h
gyp verb extracted file from tarball include/node/v8-version-string.h
gyp verb extracted file from tarball include/node/v8-version.h
gyp verb extracted file from tarball include/node/v8.h
gyp verb extracted file from tarball include/node/v8config.h
gyp verb extracted file from tarball include/node/zconf.h
gyp verb extracted file from tarball include/node/zlib.h
gyp verb extracted file from tarball include/node/openssl/aes.h
gyp verb extracted file from tarball include/node/openssl/asn1.h
gyp verb extracted file from tarball include/node/openssl/asn1_mac.h
gyp verb extracted file from tarball include/node/openssl/asn1t.h
gyp verb extracted file from tarball include/node/openssl/async.h
gyp verb extracted file from tarball include/node/openssl/bio.h
gyp verb extracted file from tarball include/node/openssl/blowfish.h
gyp verb extracted file from tarball include/node/openssl/bn.h
gyp verb extracted file from tarball include/node/openssl/bn_conf.h
gyp verb extracted file from tarball include/node/openssl/bn_conf_asm.h
gyp verb extracted file from tarball include/node/openssl/bn_conf_no-asm.h
gyp verb extracted file from tarball include/node/openssl/buffer.h
gyp verb extracted file from tarball include/node/openssl/camellia.h
gyp verb extracted file from tarball include/node/openssl/cast.h
gyp verb extracted file from tarball include/node/openssl/cmac.h
gyp verb extracted file from tarball include/node/openssl/cms.h
gyp verb extracted file from tarball include/node/openssl/comp.h
gyp verb extracted file from tarball include/node/openssl/conf.h
gyp verb extracted file from tarball include/node/openssl/conf_api.h
gyp verb extracted file from tarball include/node/openssl/crypto.h
gyp verb extracted file from tarball include/node/openssl/ct.h
gyp verb extracted file from tarball include/node/openssl/des.h
gyp verb extracted file from tarball include/node/openssl/dh.h
gyp verb extracted file from tarball include/node/openssl/dsa.h
gyp verb extracted file from tarball include/node/openssl/dso_conf.h
gyp verb extracted file from tarball include/node/openssl/dso_conf_asm.h
gyp verb extracted file from tarball include/node/openssl/dso_conf_no-asm.h
gyp verb extracted file from tarball include/node/openssl/dtls1.h
gyp verb extracted file from tarball include/node/openssl/e_os2.h
gyp verb extracted file from tarball include/node/openssl/ebcdic.h
...