A
A
Alexander Zhdun2018-07-23 19:53:01
npm
Alexander Zhdun, 2018-07-23 19:53:01

Installed npm install in a folder and got a bunch of errors! What should I do?

Started installing npm install to a folder. Everything seemed to be fine, but at the end I got a bunch of such
gyp ERR errors! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON ​​env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\Sanya\Desktop\site\_opt
imized_gulp_sass\node_modules\node-gyp\lib\configure.js:492:19)
gyp ERR! stack at PythonFinder. (C:\Users\Sanya\Desktop\website\_optimized_gulp_sass
\node_modules\node-gyp\lib\configure.js:517:16)
gyp ERR! stack at C:\Users\Sanya\Desktop\website\_optimized_gulp_sass\node_modul
es\node-gyp\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete(fs.js:158:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Sanya\\Desktop
\\website\\_optimized_gulp_sass\\node_modules\\node-gyp\\bin\\node- gyp.js" "rebuild
" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsa
ss_library="
gyp ERR! cwd C:\Users\Sanya\Desktop\website\_optimized_gulp_sass\node_modules\node-s
ass
gyp ERR! node -v v10.7.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\Sanya\AppData\Roaming\npm-cache\_logs\2018-07-23T16_49_39_0
61Z-debug.log
C:\Users\Sanya\Desktop\website\_optimized_gulp_sass>gulp
internal/modules/cjs/loader.js :583
throw err;
^
Error: Cannot find module 'gulp-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers .js:20:18)
at Object. (C:\Users\Sanya\Desktop\site\_optimized_gulp_sass\gulpf
ile.js:4:8)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions.. js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538: 12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
C:\Users\Sanya\Desktop\website\_optimized_gulp_sass>
5b56082a139bd567867802.png
What should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DarcOde, 2018-07-23
@rudyd

You have to install python and also add to python path environment variable (as in java JAVA_HOME)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question