Gyp error in start Ionic project

I am new in Ionic and try to start new project. When I try to create new project, with command: " ionic start todo blank" at the end of creating project I git some errors in command interface. The errors are:

C:\Python27\python.exe: can’t open file ‘C:\Windows\system32\todo\node_modules\node-gyp\gyp\’: [Errno
2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit
gyp ERR! stack at ChildProcess.emit (events.js:159:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command “C:\Program Files\nodejs\node.exe”
“C:\Windows\system32\todo\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=”
“–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd C:\Windows\system32\todo\node_modules\node-sass
gyp ERR! node -v v9.2.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted
{“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-sass@4.5.3 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2017-12-15T12_03_02_575Z-debug.log

How could I solve these errors. I will be thankful if someone help me.
Many thanks,

What is your ionic info output?

Looking at what I see you are running a to new node verison. Downgrade to the LTS and it should work.

Thanks, it work now with LTS version.

1 Like