2
respostas

Erro na instalação do IONIC

O erro que aparece é esse:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\io
nic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN In ionic@2.1.18 replacing bundled version of cross-spawn with cross-spa
wn@4.0.2
npm WARN In ionic@2.1.18 replacing bundled version of mime-types with mime-types
@2.0.14
npm WARN In ionic@2.1.18 replacing bundled version of semver with semver@4.2.0
npm WARN In ionic@2.1.18 replacing bundled version of form-data with form-data@0
.2.0
npm WARN In ionic@2.1.18 replacing bundled version of request with request@2.51.
0
npm WARN In ionic@2.1.18 replacing bundled version of ionic-app-lib with ionic-a
pp-lib@2.1.9
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" "cordova" "ionic"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\GSAV\AppData\Roaming\npm\node_modules\.staging\ansi-1344d
6bc
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\GSAV\AppData
\Roaming\npm\node_modules\.staging\ansi-1344d6bc' -> 'C:\Users\GSAV\AppData\Roam
ing\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\GSAV\AppData
\Roaming\npm\node_modules\.staging\ansi-1344d6bc' -> 'C:\Users\GSAV\AppData\Roam
ing\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\GSAV\npm-debug.log

C:\Users\GSAV>npm install -g cordova ionic
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher
 to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
 to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.3.3: use uuid module instead
C:\Users\GSAV\AppData\Roaming\npm
`-- cordova@6.4.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\io
nic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN In ionic@2.1.18 replacing bundled version of mime-types with mime-types
@2.0.14
npm WARN In ionic@2.1.18 replacing bundled version of cross-spawn with cross-spa
wn@4.0.2
npm WARN In ionic@2.1.18 replacing bundled version of semver with semver@4.2.0
npm WARN In ionic@2.1.18 replacing bundled version of form-data with form-data@0
.2.0
npm WARN In ionic@2.1.18 replacing bundled version of request with request@2.51.
0
npm WARN In ionic@2.1.18 replacing bundled version of ionic-app-lib with ionic-a
pp-lib@2.1.9
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" "cordova" "ionic"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\GSAV\AppData\Roaming\npm\node_modules\.staging\ansi-1344d
6bc
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\GSAV\AppData
\Roaming\npm\node_modules\.staging\ansi-1344d6bc' -> 'C:\Users\GSAV\AppData\Roam
ing\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\GSAV\AppData
\Roaming\npm\node_modules\.staging\ansi-1344d6bc' -> 'C:\Users\GSAV\AppData\Roam
ing\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\GSAV\npm-debug.log

já consultei gitHub o DevMedia e em nenhum dos forum as soluções dadas para problemas parecidos funcionaram...

2 respostas

Oi Guilherme, qual versão do node vc tem instalado? Eu acho que pode ter a ver com a versão. Se for a 6.9.1, tenta instalar a 4, só para verificar.

Não deu certo a instalação mais antiga.