Error Initializing app: There was an error with the spawned command: npminstall :(


#21

That’s “good”.
Try adding --verbose again.


#22

ok Sujan, and thanks for update.


#23

@Sujan12
I have uninstalled ionic 2 and cordova with npm than re installed beginning i get following error please help.

Error

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd..

C:\Windows>cd..

C:\>ionic -v
2.2.2


C:\>cordova -v
6.5.0

C:\>node -v
v7.9.0

C:\>npm -v
4.5.0

C:\>ionic -info
  _             _
 (_)           (_)
  _  ___  _ __  _  ___
 | |/ _ \| '_ \| |/ __|
 | | (_) | | | | | (__
 |_|\___/|_| |_|_|\___|  CLI v2.2.2

Usage: ionic task args


=======================
Available tasks:
(use --help or -h for more info)


   start  ..........  Starts a new Ionic project in the specified PATH
   serve  ..........  Start a local development server for app dev/testing
   setup  ..........  Configure the project with a build tool (beta)
   generate  .......  Generate pages and components
   platform  .......  Add platform target for building an Ionic app
   run  ............  Run an Ionic project on a connected device
   emulate  ........  Emulate an Ionic project on a simulator or emulator
   build  ..........  Build (prepare + compile) an Ionic project for a given platform.

   plugin  .........  Add a Cordova plugin
   resources  ......  Automatically create icon and splash screen resources (beta)
                      Put your images in the ./resources directory, named splash or icon.
                      Accepted file types are .png, .ai, and .psd.
                      Icons should be 192x192 px without rounded corners.
                      Splashscreens should be 2208x2208 px, with the image centered in the middle.

   upload  .........  Upload an app to your Ionic account
   share  ..........  Share an app with a client, co-worker, friend, or customer
   lib  ............  Gets Ionic library version or updates the Ionic library
   login  ..........  Login to your Ionic account
   io  .............  Integrate your app with Ionic Cloud services
   security  .......  Store your app's credentials for the Ionic Cloud
   push  ...........  Upload APNS and GCM credentials to Ionic Push
   package  ........  Use Ionic Package to build your app
   config  .........  Set configuration variables for your ionic app
   service  ........  Add an Ionic service package and install any required plugins
   add  ............  Add an Ion, bower component, or addon to the project
   remove  .........  Remove an Ion, bower component, or addon from the project
   list  ...........  List Ions, bower components, or addons in the project
   info  ...........  List information about the users runtime environment
   help  ...........  Provides help for a certain command
   link  ...........  Sets your Ionic App ID for your project
   hooks  ..........  Manage your Ionic Cordova hooks
   state  ..........  Saves or restores state of your Ionic Application using the package.json file
   docs  ...........  Opens up the documentation for Ionic


C:\>

E:\Ionic Data\Demo>ionic start demo tabs --v2
Creating an Ionic 2.x app in E:\Ionic Data\Demo\demo based on the tabs template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
Installing npm packages (may take a minute or two)...
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

#24

Hm, this is so strange. Everything seems to be installed correctly.

Could you try to start a project on C:/ please?
Is there something wrong with E: maybe? No space left?

If this doesn’t work, try it the manual way:

  1. Download https://github.com/driftyco/ionic2-app-base/archive/master.zip and unzip it into a folder
  2. Download https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip and unzip into the same folder, overwrite files if needed
  3. Run npm install in that folder
  4. Run ionic serve in that folder

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
#25

try to run npm install command separately after project creation


#26

@Sujan12 @vks_gautam1

Hello All,

Please help me i am installed {

C:>npm install -g cordova@6.3.1 ionic

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ionic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

C:>

C:\IONIC2>ionic
_ _
() ()


| |/ _ | '_ | |/ |
| | (_) | | | | | (

||___/|| |||___| CLI v2.2.3

Error:

C:\IONIC2>ionic start firstProject blank --v2
Creating an Ionic 2.x app in C:\IONIC2\firstProject based on the blank template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/master.zip
Installing npm packages (may take a minute or two)...
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

C:\IONIC2>cd firstProject

C:\IONIC2\firstProject>ionic serve

> ionic-app-base@ ionic:serve C:\IONIC2\firstProject
> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"

module.js:472
    throw err;
    ^

Error: Cannot find module 'C:\IONIC2\firstProject\node_modules\@ionic\app-scripts\bin\ionic-app-scripts.js'
    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:423:7)
    at startup (bootstrap_node.js:147:9)
    at bootstrap_node.js:538:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ionic-app-base@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-app-base@ ionic:serve script 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'.
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 ionic-app-base package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-app-base
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-app-base
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Android\AppData\Roaming\npm-cache\_logs\2017-04-21T12_01_19_327Z-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve

Please help me i use windows 10


#27

No, I won’t help you any more until:

  1. You format all your console input/output using the " or </>button so all is readable like in your console.
  2. You tried what I wrote in my last post and told us so.

#28

I’m confused. Are you now running under nvm-windows as was suggested?


#29
Hello All,

Please help me i am installed {

C:>npm install -g cordova@6.3.1 ionic

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ionic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

C:>

C:\IONIC2>ionic
_ _
() ()

| |/ _ \| '_ \| |/ __|
| | (_) | | | | | (__
|_|_/|_| |_|_|_| CLI v2.2.3

Error:

C:\IONIC2>ionic start firstProject blank --v2
Creating an Ionic 2.x app in C:\IONIC2\firstProject based on the blank template.

Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/master.zip
Installing npm packages (may take a minute or two)...
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

C:\IONIC2>cd firstProject

C:\IONIC2\firstProject>ionic serve

> ionic-app-base@ ionic:serve C:\IONIC2\firstProject
> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"

module.js:472
    throw err;
    ^

Error: Cannot find module 'C:\IONIC2\firstProject\node_modules\@ionic\app-scripts\bin\ionic-app-scripts.js'
    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:423:7)
    at startup (bootstrap_node.js:147:9)
    at bootstrap_node.js:538:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ionic-app-base@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-app-base@ ionic:serve script 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'.
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 ionic-app-base package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-app-base
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-app-base
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Android\AppData\Roaming\npm-cache\_logs\2017-04-21T12_01_19_327Z-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve

#30

Yeah that’s the same you posted 3 times now.

Did you do the other I asked you to here?


#31

@Sujan12

If in my system following site blocks. i think this the reason to create ionic project a problem ??

Block site : - http://www.amazon.com/
-getaddrinfo ENOTFOUND github-cloud.s3.amazonaws.com github cloud.s3.amazonaws.com:443

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-48_binding.node
**Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-48_binding.node":**

getaddrinfo ENOTFOUND github-cloud.s3.amazonaws.com github-cloud.s3.amazonaws.com:443

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

> node-sass@4.5.0 postinstall C:\IONIC2\MyTotorial2Demo\node_modules\node-sass
> node scripts/build.js

#32

Yes, but this will also break half the Internet probably. I don’t think I can help you with this.


#33

@Sujan12

Thanks for the help.

you know how to build ipa file without mac system for the ionic project ?.


#34

This is a different topic but you can do this with the Ionic Cloud package feature.
But you still need a Mac to upload your IPA to the AppStore with xcode or Apploader.
You can run OSX inside a VM (Google for mscOS Sierra VMware Player windows).


#35

@Sujan12
Thank you so much for the helps continue.

Yes The problem is aws service with github site block in my ststem.

i am just unblow the amazon site it’s create project successfully.

i have successfully created ionic 2 project but when i am debugging it will show below error Please Hemp me.

Error:

Couldn’t find ionic.config.json file. Are you in an Ionic project


#36

@LoLStats

ok, Thanks for the updates.


#37

Congratulations to your first successfully created project

Please create a new thread/topic for this new error and write it as we knew nothing at all, so tell us what exactly you are doing to get to this point and when and where this problem appears. Thanks.


#38