{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3729","repository_url":"https://api.github.com/repos/ionic-team/ionic-cli","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3729/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3729/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3729/events","html_url":"https://github.com/ionic-team/ionic-cli/issues/3729","id":377715600,"node_id":"MDU6SXNzdWUzNzc3MTU2MDA=","number":3729,"title":"'ionic-app-scripts' is not recognized as an internal or external command","user":{"login":"dewebeloper","id":3725912,"node_id":"MDQ6VXNlcjM3MjU5MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3725912?v=4","gravatar_id":"","url":"https://api.github.com/users/dewebeloper","html_url":"https://github.com/dewebeloper","followers_url":"https://api.github.com/users/dewebeloper/followers","following_url":"https://api.github.com/users/dewebeloper/following{/other_user}","gists_url":"https://api.github.com/users/dewebeloper/gists{/gist_id}","starred_url":"https://api.github.com/users/dewebeloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dewebeloper/subscriptions","organizations_url":"https://api.github.com/users/dewebeloper/orgs","repos_url":"https://api.github.com/users/dewebeloper/repos","events_url":"https://api.github.com/users/dewebeloper/events{/privacy}","received_events_url":"https://api.github.com/users/dewebeloper/received_events","type":"User","site_admin":false},"labels":[{"id":66857618,"node_id":"MDU6TGFiZWw2Njg1NzYxOA==","url":"https://api.github.com/repos/ionic-team/ionic-cli/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-06T06:59:52Z","updated_at":"2018-11-09T12:38:35Z","closed_at":null,"author_association":"NONE","body":"**Description:**\r\nI have Ionic demoapp made in VS Code which was worked just fine until one moment. \r\nNow when I run **Ionic Serve** command from VS code I get next: \r\n```\r\nPS E:\\MobileApp\\DemoApp1> ionic serve\r\n> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser\r\n[app-scripts] 'ionic-app-scripts' is not recognized as an internal or external command,\r\n[app-scripts] operable program or batch file.\r\n\r\n[INFO] Looks like @ionic/app-scripts isn't installed in this project.\r\n\r\n       This package is required for this command to work properly. The package provides a CLI utility, but the\r\n       ionic-app-scripts binary was not found in your PATH.\r\n\r\n? Install @ionic/app-scripts? Yes\r\n> npm i -D -E @ionic/app-scripts\r\nnpm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.\r\nnpm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.\r\nnpm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.\r\nnpm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\\fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"})\r\n\r\n+ @ionic/app-scripts@3.2.0\r\nupdated 1 package and audited 6999 packages in 29.484s\r\nfound 5 moderate severity vulnerabilities\r\n  run `npm audit fix` to fix them, or `npm audit` for details\r\n> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser\r\n[app-scripts] 'ionic-app-scripts' is not recognized as an internal or external command,\r\n[app-scripts] operable program or batch file.\r\n[ERROR] ionic-app-scripts command not found.\r\nPS E:\\MobileApp\\DemoApp1>\r\n```\r\nIf I run **ionic serve --verbose** from VS code then I'm able to run and start my app.\r\n\r\nHowever, if I run same **ionic serve** from cmd I'm also able to run server and start my app.\r\n```\r\nE:\\MobileApp\\DemoApp1>ionic serve\r\n> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser\r\n[app-scripts] [07:35:59]  ionic-app-scripts 3.2.0\r\n[app-scripts] [07:35:59]  watch started ...\r\n[app-scripts] [07:35:59]  build dev started ...\r\n[app-scripts] [07:35:59]  clean started ...\r\n[app-scripts] [07:35:59]  clean finished in 36 ms\r\n[app-scripts] [07:35:59]  copy started ...\r\n[app-scripts] [07:35:59]  deeplinks started ...\r\n[app-scripts] [07:35:59]  deeplinks finished in 35 ms\r\n[app-scripts] [07:35:59]  transpile started ...\r\n[app-scripts] [07:36:08]  transpile finished in 8.38 s\r\n[app-scripts] [07:36:08]  preprocess started ...\r\n[app-scripts] [07:36:08]  preprocess finished in 2 ms\r\n[app-scripts] [07:36:08]  webpack started ...\r\n[app-scripts] [07:36:08]  copy finished in 8.90 s\r\n[app-scripts] [07:36:14]  webpack finished in 6.13 s\r\n[app-scripts] [07:36:14]  sass started ...\r\n[app-scripts] [07:36:16]  sass finished in 2.08 s\r\n[app-scripts] [07:36:16]  postprocess started ...\r\n[app-scripts] [07:36:16]  postprocess finished in 20 ms\r\n[app-scripts] [07:36:16]  lint started ...\r\n[app-scripts] [07:36:16]  build dev finished in 16.92 s\r\n[app-scripts] [07:36:17]  watch ready in 17.73 s\r\n\r\n[INFO] Development server running!\r\n\r\n       Local: http://localhost:8100\r\n       External: http://192.168.0.5:8100, http://192.168.56.1:8100, http://172.26.165.145:8100\r\n       DevApp: DemoApp1@8100 on SERVER\r\n\r\n       Use Ctrl+C to quit this process\r\n\r\n[INFO] Browser window opened to http://localhost:8100!\r\n\r\n[app-scripts] [07:36:30]  tslint: E:/MobileApp/DemoApp1/src/app/app.component.ts, line: 6\r\n[app-scripts]             All imports on this line are unused.\r\n[app-scripts]        L5:  import { SplashScreen } from '@ionic-native/splash-screen';\r\n[app-scripts]        L6:  import {FavoritesPage} from '../pages/favorites/favorites'\r\n[app-scripts] [07:36:30]  lint finished in 13.87 s\r\n[app-scripts] Terminate batch job (Y/N)?\r\nTerminate batch job (Y/N)? y\r\n\r\nE:\\MobileApp\\DemoApp1>\r\n```\r\n\r\n**My `ionic info`:**\r\n```\r\nPS E:\\MobileApp\\DemoApp1> ionic info\r\n\r\nIonic:\r\n\r\n   ionic (Ionic CLI)  : 4.3.1 (C:\\Users\\DjoleX\\AppData\\Roaming\\npm\\node_modules\\ionic)\r\n   Ionic Framework    : ionic-angular 3.9.2\r\n   @ionic/app-scripts : 3.2.0\r\n\r\nSystem:\r\n\r\n   NodeJS : v10.13.0 (C:\\Program Files\\nodejs\\node.exe)\r\n   npm    : 6.4.1\r\n   OS     : Windows 10\r\n\r\nPS E:\\MobileApp\\DemoApp1>\r\n```\r\nAny thoughts about this crazy behavior?\r\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/comments/437347716","html_url":"https://github.com/ionic-team/ionic-cli/issues/3729#issuecomment-437347716","issue_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3729","id":437347716,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM0NzcxNg==","user":{"login":"chadamodio","id":16690679,"node_id":"MDQ6VXNlcjE2NjkwNjc5","avatar_url":"https://avatars3.githubusercontent.com/u/16690679?v=4","gravatar_id":"","url":"https://api.github.com/users/chadamodio","html_url":"https://github.com/chadamodio","followers_url":"https://api.github.com/users/chadamodio/followers","following_url":"https://api.github.com/users/chadamodio/following{/other_user}","gists_url":"https://api.github.com/users/chadamodio/gists{/gist_id}","starred_url":"https://api.github.com/users/chadamodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadamodio/subscriptions","organizations_url":"https://api.github.com/users/chadamodio/orgs","repos_url":"https://api.github.com/users/chadamodio/repos","events_url":"https://api.github.com/users/chadamodio/events{/privacy}","received_events_url":"https://api.github.com/users/chadamodio/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T12:38:35Z","updated_at":"2018-11-09T12:38:35Z","author_association":"NONE","body":"Same issues here but I want to note I am on Windows. I tried removing package-json.lock and running npm install with no change. Not sure if it helps but it WILL serve when I run cmd terminal as administrator, but that is the only time I can get it to work. Let me know if you need anything from me to help the issue. "}}
{"actor":{"display_login":"chadamodio"}}