Hi,
For the last 2 days I am facing issue while creating Ionic2 project.
When I start a project with --v2, I am getting the following error.
Creating Ionic app in folder E:\MyApp\Projects\Ionic\Test3\test based on tabs pr
oject
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Installing npm packages...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
Following is my ionic info:
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Windows 8.1
Node Version: v4.6.0
I have tried uninstalling and installing a lot of time. Did not work.
Can anyone help me resolve this issue.
remove node_modules folder and manually run npm install from inside the project…
Same issue since I upgraded to RC0.
Trued uninstall node, ionic, cordova, git and reinstall these…
Still no solution.
Which node_modules? How can I find it?
The issue start when they release RC0.
The whole node_modules folder itself… within your project root… delete and rerun npm install… this is not new to rc0… it happen way before…
If I am not wrong , the node_modules folder gets created inside your project folder. But I am facing the error while starting(creating) the project itself. Here starting means
ionic start test --v2
Do you mean the project folder itself not even created? I always encounter this error when creating a new project… the error even says that it trying to run npm install which failed… thats why i always rerun the npm install manually… but in my case, the error happen after project folder was created…
There’s no node_modules folder in your Test3/test folder? It says the folder got created… nevermind if there’s no node_modules folder inside, as long as there’s package.json files, you should be able to run npm install manually…
What is the command should I run after delete the folder in my root project node_modules?
Example: on my project root “npm install …”?
Yes… just npm install… this will read all the dependencies listed during ionic create and npm will install them accordingly…
Unfortunally, it does not work.
I see there is only one file .gitkeep on folder www after I run the command ioninc start myapp --v2
Yes. Exertly same scenario here.
It seems to be a common issue for many of us after the upgrade and we are stuck here.
when i run npm install I get below errors - (ionic start did not create npm_modules folder as it failed with errors)
I have completely removed node, ionic, git cleaned up all folder from my windows pc, reinstalled them and still could not solve the problem. Spent countless hours trying to get it to work
Fortunately I have a macbook also and there RC0 works but I cannot debug the app
This is the worst release so far… from teh ionic team … so frustrating.
- Creating project new app does not work. Npm install is broken…
- RC0 projects cannot be Debugged in chrome
and I am not sure how it passed the QC before it was released
npm version is 3.10.3
node version V6.7.0
Ionic info -
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 7 SP1
Node Version: v6.7.0
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:877:16)
npm WARN addRemoteGit at Socket. (internal/child_process.js:334:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:493:12)
npm WARN addRemoteGit driftyco/localforage-cordovasqlitedriver#9803562a61c2172a69f3475f97e98922c0b49ac0 resetting remote C:\Users\927390\AppData\Roaming\npm-cache_git-re
ror: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:877:16)
npm WARN addRemoteGit at Socket. (internal/child_process.js:334:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:493:12)
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: ‘git -c core.longpaths=true config --get remote.origin.url’ }
npm ERR! git clone --template=C:\Users\927390\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/driftyco/localforage-cordovasqlitedriver.git C:\U
f3475f97e98922c0b49ac0-f7bfd5d6: Cloning into bare repository 'C:\Users\927390\AppData\Roaming\npm-cache_git-remotes\git-github-com-driftyco-localforage-cordovasqlitedriv
npm ERR! git clone --template=C:\Users\927390\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/driftyco/localforage-cordovasqlitedriver.git C:\U
f3475f97e98922c0b49ac0-f7bfd5d6: fatal: unable to connect to github.com:
npm ERR! git clone --template=C:\Users\927390\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/driftyco/localforage-cordovasqlitedriver.git C:\U
f3475f97e98922c0b49ac0-f7bfd5d6: github.com[0: 192.30.253.113]: errno=No error
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:877:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm WARN addRemoteGit driftyco/localforage-cordovasqlitedriver#9803562a61c2172a69f3475f97e98922c0b49ac0 resetting remote C:\Users\927390\AppData\Roaming\npm-cache_git-re
Updated Node.
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 8.1
Node Version: v6.0.0
Still issue exists.
I have download the latest version of node and installed it.
**
IT WORKED.
**
So for those who have the same problem, try out this.
Node 6.7.0
some people have this error even on 6.7.0… so, for those people, give npm install a try…
Node updated to 6.7.0. Did not work.
I have installed git and use the bash.
just type npm update in project folder and it worked.
I hope ionic team help on that in the future.