3
respostas

ionic resources / não consigo criar os icones

C:\Users\Usuario\garconapp>ionic resources

module.js:472 throw err; ^

Error: Cannot find module 'C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\bin\ionic' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:427:7) at startup (bootstrap_node.js:151:9) at bootstrap_node.js:542:3

3 respostas

Só com o erro assim a gente não consegue nem saber por onde te ajudar. Coloque tudo que vc fez até chegar o erro para tentar ajuda-lo

quando eu coloco ionic -v, ele da o mesmo bug, pelo que percebi não existe os arquivos bin\ionic, porem ele não esta criando-os...

O ionic não esta buildando

C:\Users\Usuario\garconapp>npm install -g ionic@1

C:\Users\Usuario\AppData\Roaming\npm\ionic ->

C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\bin\ionic

node-sass@3.8.0 install C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass node scripts/install.js

Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win32-x64-51_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

npm config set proxy http://example.com:8080

spawn-sync@1.0.15 postinstall C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cross-spawn\node_modules\spawn-s ync node postinstall

node-sass@3.8.0 postinstall C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\Usuario\AppData\Roaming\npm\nodemodules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_module s\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 [ 'C:\Program Files\nodejs\node.exe', gyp verb cli 'C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\bi n\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.3.1 gyp info using node@7.10.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\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node modules\node-gyp\nodemodules\which\which.js:14:12) gyp verb which failed at F (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gy p\node_modules\which\which.js:69:19) gyp verb which failed at E (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gy p\node_modules\which\which.js:81:29) gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\which.js:90:16 gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\node_modules\isexe\index.js:44:5 gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\node_modules\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\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node modules\node-gyp\node_modules\which\which.js:14:12) gyp verb which failed at F (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gy p\node_modules\which\which.js:69:19) gyp verb which failed at E (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gy p\node_modules\which\which.js:81:29) gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\which.js:90:16 gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\node_modules\isexe\index.js:44:5 gyp verb which failed at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\n ode_modules\which\node_modules\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:\Python36\python.EXE gyp verb check python version C:\Python36\python.EXE -c "import platform; print(platform.python_version());" returned: "3.6.0\r\n" gyp ERR! configure error gyp ERR! stack Error: Python executable "C:\Python36\python.EXE" is v3.6.0, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\ node-gyp\lib\configure.js:406:14) gyp ERR! stack at C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\node-gyp\lib\config ure.js:395:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:197:7) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:194:7) gyp ERR! stack at maybeClose (internal/child_process.js:899:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_module s\node-sass\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass gyp ERR! node -v v7.10.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok Build failed npm WARN Error: EPERM: operation not permitted, scandir 'C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sa ss\node_modules\meow\node_modules\redent\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules' npm WARN { Error: EPERM: operation not permitted, scandir 'C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node -sass\node_modules\meow\node_modules\redent\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules' npm WARN errno: -4048, npm WARN code: 'EPERM', npm WARN syscall: 'scandir', npm WARN path: 'C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\node-sass\node_modules\meow\node _modules\redent\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules' } npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "ionic@1" npm ERR! node v7.10.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1

npm ERR! node-sass@3.8.0 postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.8.0 postinstall script 'node scripts/build.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Usuario\AppData\Roaming\npm-cache_logs\2017-06-09T01_16_08_330Z-debug.log

C:\Users\Usuario\garconapp>