Angular CLI installation error

c:\Users\abc\code\angularCliYarn>ng
‘ng’ is not recognized as an internal or external command,
operable program or batch file.

c:\Users\abc\code\angularCliYarn>yarn install
yarn install v0.21.3
[1/4] Resolving packages…
[2/4] Fetching packages…
warning fsevents@1.1.1: The platform “win32” is incompatible with this module.
info “fsevents@1.1.1” is an optional dependency and failed compatibility check.
Excluding it from installation.
[3/4] Linking dependencies…
[4/4] Building fresh packages…
[1/1] ⠐ node-sass: ERR! not ok
[-/1] ⠐ waiting…
[-/1] ⠈ waiting…
[-/1] ⠈ waiting…
error c:\Users\abc\code\angularCliYarn\node_modules\node-sass: Command fail
ed.
Exit code: 1
Command: C:\Windows\system32\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: c:\Users\abc\code\angularCliYarn\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe c:\Users\khematar\code\angularCliYarn
\node_modules\node-gyp\bin\node-gyp.js rebuild –verbose –libsass_ext= –libsas
s_cflags= –libsass_ldflags= –libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘C:\Program Files\nodejs\node.exe’,
gyp verb cli ‘c:\Users\khematar\code\angularCliYarn\node_modules\node-gy
p\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.5.0
gyp info using node@7.7.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 (c:\Users\khematar\code\angularC
liYarn\node_modules\which\which.js:13:12)
gyp verb which failed at F (c:\Users\khematar\code\angularCliYarn\node_mod
ules\which\which.js:68:19)
gyp verb which failed at E (c:\Users\khematar\code\angularCliYarn\node_mod
ules\which\which.js:80:29)
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\which\which.js:89:16
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\isexe\index.js:44:5
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:114:15)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (c:\Users\khematar\code\angularC
liYarn\node_modules\which\which.js:13:12)
gyp verb which failed at F (c:\Users\khematar\code\angularCliYarn\node_mod
ules\which\which.js:68:19)
gyp verb which failed at E (c:\Users\khematar\code\angularCliYarn\node_mod
ules\which\which.js:80:29)
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\which\which.js:89:16
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\isexe\index.js:44:5
gyp verb which failed at c:\Users\khematar\code\angularCliYarn\node_module
s\isexe\windows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:114:15) code: ‘ENOENT
‘ }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which succeeded python C:\Program Files\Emscripten\python\2.7.5.3_64b
it\python.EXE
gyp verb check python version C:\Program Files\Emscripten\python\2.7.5.3_64bit\
python.EXE -c "import platform; print(platform.python_version());"
returned: “2
.7.5\r\n”
gyp verb get node dir no –target version specified, falling back to host node v
ersion: 7.7.0
gyp verb command install [ ‘7.7.0’ ]
gyp verb install input version string “7.7.0”
gyp verb install installing version: 7.7.0
gyp verb install –ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check “installVersion”
gyp verb got “installVersion” 9
gyp verb needs “installVersion” 9
gyp verb install version is good
gyp verb get node dir target node version installed: 7.7.0
gyp verb build dir attempting to create “build” dir: c:\Users\khematar\code\angu
larCliYarn\node_modules\node-sass\build
gyp verb build dir “build” dir needed to be created? c:\Users\khematar\code\angu
larCliYarn\node_modules\node-sass\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: c:\Users\khematar\code\angul
arCliYarn\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: c:\Users\khematar\code\angularCliYa
rn\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: c:\Users\khematar\code\angularCliYa
rn\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing “msvs”
gyp info spawn C:\Program Files\Emscripten\python\2.7.5.3_64bit\python.EXE
gyp info spawn args [ ‘c:\Users\khematar\code\angularCliYarn\node_modules\
node-gyp\gyp\gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘msvs’,
gyp info spawn args ‘-G’,
gyp info spawn args ‘msvs_version=2013’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘c:\Users\khematar\code\angularCliYarn\node_modules\
node-sass\build\config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘c:\Users\khematar\code\angularCliYarn\node_modules\
node-gyp\addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\khematar\.node-gyp\7.7.0\include\node\com
mon.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=C:\Users\khematar\.node-gyp\7.7.0’,
gyp info spawn args ‘-Dnode_gyp_dir=c:\Users\khematar\code\angularCliYarn\
\node_modules\node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=c:\Users\khematar\code\angularCliYa
rn\node_modules\node-sass’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘c:\Users\khematar\code\angularCliYarn\node_modules\
node-sass\build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\khematar.node-gyp\7.7.0
gyp verb found first Solution file build/binding.sln
gyp verb could not find “msbuild.exe” in PATH – finding location in registry
gyp verb “Release” dir needed to be created? null
gyp verb copying “node.lib” for x64 C:\Users\khematar.node-gyp\7.7.0\Release\no
de.lib
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ ‘build/binding.sln’,
gyp info spawn args ‘/nologo’,
gyp info spawn args ‘/p:Configuration=Release;Platform=x64’ ]
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
Build started 3/3/2017 5:59:04 AM.
Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\bind
ing.sln” on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration “Release|x64”.
Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\bind
ing.sln” (1) is building “c:\Users\khematar\code\angularCliYarn\node_modules\nod
e-sass\build\binding.vcxproj.metaproj” (2) on node 1 (default targets).
Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\bind
ing.vcxproj.metaproj” (2) is building “c:\Users\khematar\code\angularCliYarn\nod
e_modules\node-sass\build\src\libsass.vcxproj” (3) on node 1 (default targets).
c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\src\libsass.v
cxproj(20,3): error MSB4019: The imported project “c:\Microsoft.Cpp.Default.prop
s” was not found. Confirm that the path in the <Import> declaration is correct,
and that the file exists on disk.
Done Building Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-s
ass\build\src\libsass.vcxproj” (default targets) — FAILED.
Done Building Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-s
ass\build\binding.vcxproj.metaproj” (default targets) — FAILED.
Done Building Project “c:\Users\khematar\code\angularCliYarn\node_modules\node-s
ass\build\binding.sln” (default targets) — FAILED.

Build FAILED.

“c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\binding.sln”
(default target) (1) ->
“c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\binding.vcxp
roj.metaproj” (default target) (2) ->
“c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\src\libsass.
vcxproj” (default target) (3) ->
c:\Users\khematar\code\angularCliYarn\node_modules\node-sass\build\src\libsass
.vcxproj(20,3): error MSB4019: The imported project “c:\Microsoft.Cpp.Default.pr
ops” was not found. Confirm that the path in the <Import> declaration is correct
, and that the file exists on disk.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.40
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Users\khematar\code\angularCliYarn
\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “C:\Program Files\nodejs\node.exe” “c:\Users\khematar\cod
e\angularCliYarn\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbos
e” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=

gyp ERR! cwd c:\Users\khematar\code\angularCliYarn\node_modules\node-sass
gyp ERR! node -v v7.7.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s