M
M
Maxim Supreme2018-05-25 15:43:39
Node.js
Maxim Supreme, 2018-05-25 15:43:39

After updating node, an error occurs when installing yarn install, how to fix it?

After updating node, when installing dependencies in a project that previously ran without problems, an error occurs. How can you fix it, can anyone come across?
The error code is not all because of the character limit...

⟩ yarn install --save-dev
yarn install v0.15.1
warning [email protected]: No license field
warning [email protected]: Dependency "path" listed in "devDependencies" is the name of a built-in module
[1/4]   Resolving packages...
[2/4]   Fetching packages...
warning [email protected]: The engine "rhino" appears to be invalid.
[3/4]   Linking dependencies...
warning Unmet peer dependency "[email protected]>=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 [email protected]
gyp info using [email protected] | 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-

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-05-25
@RidgeA

it says what the problem is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question