I am trying “npm install” and the installation is not finished for the error below..
JavaScript
x
55
55
1
npm ERR! code 1
2
npm ERR! path C:UsersBASILISDesktopkronos-webappnode_modulesnode-sass
3
npm ERR! command failed
4
npm ERR! command C:Windowssystem32cmd.exe /d /s /c node scripts/build.js
5
npm ERR! Building: C:Program Filesnodejsnode.exe C:UsersBASILISDesktopkronos-webappnode_modulesnode-gypbinnode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
6
npm ERR! gyp info using node-gyp@3.8.0
7
npm ERR! gyp info using node@15.14.0 | win32 | x64
8
npm ERR! gyp verb command rebuild []
9
npm ERR! gyp verb command clean []
10
npm ERR! gyp verb clean removing "build" directory
11
npm ERR! gyp verb command configure []
12
npm ERR! gyp verb check python checking for Python executable "python2.7" in the PATH
13
npm ERR! gyp verb `which` failed Error: not found: python2.7
14
npm ERR! gyp verb `which` failed at getNotFoundError (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:13:12)
15
npm ERR! gyp verb `which` failed at F (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:68:19)
16
npm ERR! gyp verb `which` failed at E (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:80:29)
17
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:89:16
18
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_modulesisexeindex.js:42:5
19
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_modulesisexewindows.js:36:5
20
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:193:21)
21
npm ERR! gyp verb `which` failed python2.7 Error: not found: python2.7
22
npm ERR! gyp verb `which` failed at getNotFoundError (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:13:12)
23
npm ERR! gyp verb `which` failed at F (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:68:19)
24
npm ERR! gyp verb `which` failed at E (C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:80:29)
25
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_moduleswhichwhich.js:89:16
26
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_modulesisexeindex.js:42:5
27
npm ERR! gyp verb `which` failed at C:UsersBASILISDesktopkronos-webappnode_modulesisexewindows.js:36:5
28
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:193:21) {
29
npm ERR! gyp verb `which` failed code: 'ENOENT'
30
npm ERR! gyp verb `which` failed }
31
npm ERR! gyp verb could not find "python2.7". checking python launcher
32
npm ERR! gyp verb build type Release
33
npm ERR! gyp verb architecture x64
34
npm ERR! gyp verb node dev dir C:UsersBASILIS.node-gyp15.14.0
35
npm ERR! gyp verb found first Solution file build/binding.sln
36
npm ERR! gyp verb could not find "msbuild.exe" in PATH - finding location in registry
37
npm ERR! gyp info spawn C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe
38
npm ERR! gyp info spawn args [
39
npm ERR! gyp info spawn args 'build/binding.sln',
40
npm ERR! gyp info spawn args '/nologo',
41
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
42
npm ERR! gyp info spawn args ]
43
npm ERR! gyp ERR! build error
44
npm ERR! gyp ERR! stack Error: `C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1
45
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:UsersBASILISDesktopkronos-webappnode_modulesnode-gyplibbuild.js:262:23)
46
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:369:20)
47
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
48
npm ERR! gyp ERR! System Windows_NT 10.0.19043
49
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\BASILIS\Desktop\kronos-webapp\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
50
npm ERR! gyp ERR! cwd C:UsersBASILISDesktopkronos-webappnode_modulesnode-sass
51
npm ERR! gyp ERR! node -v v15.14.0
52
npm ERR! gyp ERR! node-gyp -v v3.8.0
53
npm ERR! gyp ERR! not ok
54
npm ERR! Build failed with error code: 1
55
I tried to first install the version of node-gyp@3.8.0 but is not changed anything I tried to install the current version and i take the same problem as before.
Thanks in advance
Advertisement
Answer
You should install python2.7 to your os