I tried the webpack support beta 2 as per the above instruction. and got the following problems with " ionic serve -l -s -c"
I am fine with beta 1
wjz@bj:~/ion/vajra$ npm install @ionic/app-scripts@beta --save-dev
vajra@ /home/wjz/ion/vajra
└── @ionic/app-scripts@0.0.37-5
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
wjz@bj:~/ion/vajra$ ionic serve -l -s -c
Running 'serve:before' npm script before serve
> vajra@ watch /home/wjz/ion/vajra
> ionic-app-scripts watch
[09:57:06] ionic-app-scripts 0.0.37-5
[09:57:06] watch started ...
[09:57:06] build dev started ...
[09:57:06] clean started ...
[09:57:06] clean finished in 13 ms
[09:57:06] copy started ...
[09:57:06] transpile started ...
[09:57:06] lint started ...
[09:57:13] lint finished in 6.90 s
[09:57:15] transpile finished in 8.74 s
[09:57:15] webpack started ...
[09:57:15] copy finished in 9.38 s
[09:57:28] webpack finished in 13.65 s
[09:57:28] sass started ...
[09:57:32] sass finished in 3.65 s
[09:57:32] build dev finished in 26.08 s
[09:57:32] watch failed: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src/pages/message/message.ts ENOSPC
[09:57:32] ionic-app-script task: "watch"
[09:57:32] Error: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src/pages/message/message.ts ENOSPC
npm
ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/wjz/.nvm/versions/node/v4.5.0/bin/node" "/home/wjz/.nvm/versions/node/v4.5.0/bin/npm" "run" "watch"
npm ERR! node v4.5.0
npm ERR! npm v3.10.8
npm ERR!
code ELIFECYCLE
npm ERR! vajra@ watch: `ionic-app-scripts watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vajra@ watch script 'ionic-app-scripts watch'.
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 vajra package,
npm ERR!
not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts watch
npm ERR! You can get information on how to open an issue for this project with:
npm
ERR! npm bugs vajra
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vajra
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/wjz/ion/vajra/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
wjz@bj:~/ion/vajra$ ionic serve -l -s -c
Running 'serve:before' npm script before serve
> vajra@ watch /home/wjz/ion/vajra
> ionic-app-scripts watch
[09:58:42] ionic-app-scripts 0.0.37-5
[09:58:42] watch started ...
[09:58:42] build dev started ...
[09:58:42] clean started ...
[09:58:42] clean finished in 6 ms
[09:58:42] copy started ...
[09:58:42] transpile started ...
[09:58:42] lint started ...
[09:58:47] lint finished in 5.14 s
[09:58:50] transpile finished in 7.76 s
[09:58:50] webpack started ...
[09:58:50] copy finished in 8.09 s
[09:59:01] webpack finished in 11.65 s
[09:59:01] sass started ...
[09:59:05] sass finished in 4.00 s
[09:59:05] build dev finished in 23.45 s
[09:59:06] watch failed: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src/pages/general/general.ts ENOSPC
[09:59:06] ionic-app-script task: "watch"
[09:59:06] Error: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src/pages/general/general.ts ENOSPC
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/wjz/.nvm/versions/node/v4.5.0/bin/node" "/home/wjz/.nvm/versions/node/v4.5.0/bin/npm" "run" "watch"
npm ERR! node v4.5.0
npm ERR! npm
v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! vajra@ watch: `ionic-app-scripts watch`
npm ERR! Exit status 1
npm ERR!
npm
ERR! Failed at the vajra@ watch script 'ionic-app-scripts watch'.
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 vajra package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts watch
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vajra
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vajra
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/home/wjz/ion/vajra/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
wjz@bj:~/ion/vajra$
I restored to beta 1 and do it again strictly as per the upgrade instruction
and got the following problems
wjz@bj:~/ion/vajra$ npm install @ionic/app-scripts@beta
vajra@ /home/wjz/ion/vajra
└── @ionic/app-scripts@0.0.37-5 invalid
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
wjz@bj:~/ion/vajra$ ionic serve -l -s -c
Running 'serve:before' npm script before serve
> vajra@ watch /home/wjz/ion/vajra
> ionic-app-scripts watch
[10:19:16] ionic-app-scripts 0.0.37-5
[10:19:16] watch started ...
[10:19:16] build dev started ...
[10:19:16] clean started ...
[10:19:16] clean finished in 5 ms
[10:19:16] copy started ...
[10:19:16] transpile started ...
[10:19:16] lint started ...
[10:19:24] lint finished in 7.26 s
[10:19:25] transpile finished in 9.56 s
[10:19:25] webpack started ...
[10:19:26] copy finished in 10.46 s
[10:19:43] webpack finished in 17.50 s
[10:19:43] sass started ...
[10:20:06] sass finished in 22.94 s
[10:20:06] build dev finished in 50.02 s
[10:20:06] watch failed: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src ENOSPC
[10:20:06] ionic-app-script task: "watch"
[10:20:06] Error: watcher error: /home/wjz/ion/vajra/home/wjz/ion/vajra/src/**/*.ts: Error: watch
/home/wjz/ion/vajra/src ENOSPC
npm
ERR! Linux 4.4.0-45-generic
npm ERR! argv "/home/wjz/.nvm/versions/node/v4.5.0/bin/node" "/home/wjz/.nvm/versions/node/v4.5.0/bin/npm" "run" "watch"
npm ERR! node v4.5.0
npm ERR!
npm v3.10.8
npm ERR! code ELIFECYCLE
npm
ERR! vajra@ watch: `ionic-app-scripts watch`
npm ERR! Exit status 1
npm ERR!
npm ERR!
Failed at the vajra@ watch script 'ionic-app-scripts watch'.
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 vajra package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts watch
npm ERR! You can get information on how to open an issue for this project with:
npm
ERR! npm bugs vajra
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vajra
npm
ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/home/wjz/ion/vajra/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
wjz@bj:~/ion/vajra$
I am able to paste the “npm-debug.log” as bellow this time
0 info it worked if it ends with ok
1 verbose cli [ '/home/wjz/.nvm/versions/node/v4.5.0/bin/node',
1 verbose cli '/home/wjz/.nvm/versions/node/v4.5.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'watch' ]
2 info using npm@3.10.8
3 info using node@v4.5.0
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle vajra@~prewatch: vajra@
6 silly lifecycle vajra@~prewatch: no script for prewatch, continuing
7 info lifecycle vajra@~watch: vajra@
8 verbose lifecycle vajra@~watch: unsafe-perm in lifecycle true
9 verbose lifecycle vajra@~watch: PATH: /home/wjz/.nvm/versions/node/v4.5.0/lib/node_modules/npm/bin/node-gyp-bin:/home/wjz/ion/vajra/node_modules/.bin:/home/wjz/.nvm/versions/node/v4.5.0/bin:/home/wjz/bin:/home/wjz/.local/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle vajra@~watch: CWD: /home/wjz/ion/vajra
11 silly lifecycle vajra@~watch: Args: [ '-c', 'ionic-app-scripts watch' ]
12 silly lifecycle vajra@~watch: Returned: code: 1 signal: null
13 info lifecycle vajra@~watch: Failed to exec watch script
14 verbose stack Error: vajra@ watch: `ionic-app-scripts watch`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/home/wjz/.nvm/versions/node/v4.5.0/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess.<anonymous> (/home/wjz/.nvm/versions/node/v4.5.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:829:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid vajra@
16 verbose cwd /home/wjz/ion/vajra
17 error Linux 4.4.0-45-generic
18 error argv "/home/wjz/.nvm/versions/node/v4.5.0/bin/node" "/home/wjz/.nvm/versions/node/v4.5.0/bin/npm" "run" "watch"
19 error node v4.5.0
20 error npm v3.10.8
21 error code ELIFECYCLE
22 error vajra@ watch: `ionic-app-scripts watch`
22 error Exit status 1
23 error Failed at the vajra@ watch script 'ionic-app-scripts watch'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the vajra package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error ionic-app-scripts watch
23 error You can get information on how to open an issue for this project with:
23 error npm bugs vajra
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls vajra
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
and my ionic info
wjz@bj:~/ion/vajra$ ionic info
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v4.5.0