Wednesday 17 May 2017

cordova create project failed

E:\cordovaProject>cordova create myapp com.mu myapp -d Using detached cordova-create Creating a new cordova project. Copying assets." Using cordova-fetch for C:\Users\Administrator\AppData\Roaming\npm\node_modules\ cordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\ind ex.js Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install C:\Users\ Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules_cordova-app -hello-world@3.12.0@cordova-app-hello-world\index.js"" Command finished with error code 4294963238: cmd /s /c ""C:\Program Files\nodejs \npm.cmd" install C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordov a\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\index.js"

Error: Uncaught, unspecified "error" event. ( Error from Cordova Fetch: Error: cmd: Command failed with exit code 4294963238 Error output: npm ERR! not a package C:\Users\Administrator\AppData\Roaming\npm\node_modules\c ordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hello-world\inde x.js npm ERR! addLocal Could not install C:\Users\Administrator\AppData\Roaming\npm\n ode_modules\cordova\node_modules_cordova-app-hello-world@3.12.0@cordova-app-hel lo-world\index.js npm ERR! path C:\Users\Administrator\AppData\Local\Temp\npm-8056-980eaa3d\unpack -8e52606f\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\ AppData\Local\Temp\npm-8056-980eaa3d\unpack-8e52606f\package.json' 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! A complete log of this run can be found in: npm ERR!
C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-05-18T0 2_13_23_845Z-debug.log)



via anyecixin

No comments:

Post a Comment