NathanWalker / angular-seed-advanced

Advanced Angular seed project with support for ngrx/store, ngrx/effects, ngx-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
MIT License
2.26k stars 445 forks source link

npm run clean fails on Windows #470

Open erikhofer opened 7 years ago

erikhofer commented 7 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

Running npm run clean on a fresh clone produces the following output:

$ npm run clean

> angular-seed-advanced@0.0.0 clean C:\ReviewCommunity\seed-test4
> npm run clean.js && rimraf node_modules typings && cd nativescript && rimraf node_modules hooks lib platforms && cd .. && npm i

> angular-seed-advanced@0.0.0 clean.js C:\ReviewCommunity\seed-test4
> gulp clean.all.src.js

[16:07:43] Requiring external module ts-node/register
[16:07:45] Loading tasks folder C:\ReviewCommunity\seed-test4\tools\tasks\seed
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.assets.dev
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.assets.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.assets.tns
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.bundle.rxjs
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.bundles.app.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.bundles.app.rollup.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.bundles.app
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.bundles
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.docs
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.html_css
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.index.dev
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.index.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.dev
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.e2e
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.prod.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.prod.rollup.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.test
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.js.tns
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.tns_html_css
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\build.tools
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\check.tools
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\check.versions
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.all.src.js
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.all
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.coverage
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.dev
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.e2e
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.tns
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clean.tools
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\clear.files
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\compile.ahead.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\copy.prod.rollup.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\copy.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\e2e
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\generate.manifest
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\karma.run
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\karma.run.with_coverage
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\karma.watch
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\minify.bundles
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\minify.index
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\noop
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\print.banner
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\serve.coverage
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\serve.coverage.watch
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\serve.docs
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\server.prod
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\server.start
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\start.deving
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\sw.manifest.static
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\transpile.bundles.rollup.aot
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\tslint.tns
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\tslint
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\watch.dev
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\watch.e2e
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\watch.test
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\watch.tns
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\seed\webdriver
[16:07:45] Loading tasks folder C:\ReviewCommunity\seed-test4\tools\tasks\project
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.build
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.libs
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.package.linux
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.package.mac
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.package.windows
[16:07:45] Registering task C:\ReviewCommunity\seed-test4\tools\tasks\project\desktop.watch
[16:07:45] Using gulpfile C:\ReviewCommunity\seed-test4\gulpfile.ts
[16:07:45] Starting 'clean.all.src.js'...
[16:07:46] Deleted src/client/*.js
[16:07:46] Deleted src/client/*.js.map
[16:07:46] Deleted src\client\app/*.js
[16:07:46] Deleted src\client\app/*.js.map
[16:07:46] Deleted src\client\app\components/*.js
[16:07:46] Deleted src\client\app\components/*.js.map
[16:07:46] Deleted src\client\app\components\about/*.js
[16:07:46] Deleted src\client\app\components\about/*.js.map
[16:07:46] Deleted src\client\app\components\home/*.js
[16:07:46] Deleted src\client\app\components\home/*.js.map
[16:07:46] Deleted src\client\app\modules/*.js
[16:07:46] Deleted src\client\app\modules/*.js.map
[16:07:46] Deleted src\client\app\modules\analytics/*.js
[16:07:46] Deleted src\client\app\modules\analytics/*.js.map
[16:07:46] Deleted src\client\app\modules\analytics\services/*.js
[16:07:46] Deleted src\client\app\modules\analytics\services/*.js.map
[16:07:46] Deleted src\client\app\modules\core/*.js
[16:07:46] Deleted src\client\app\modules\core/*.js.map
[16:07:46] Deleted src\client\app\modules\core\directives/*.js
[16:07:46] Deleted src\client\app\modules\core\directives/*.js.map
[16:07:46] Deleted src\client\app\modules\core\interfaces/*.js
[16:07:46] Deleted src\client\app\modules\core\interfaces/*.js.map
[16:07:46] Deleted src\client\app\modules\core\services/*.js
[16:07:46] Deleted src\client\app\modules\core\services/*.js.map
[16:07:46] Deleted src\client\app\modules\core\services\logging/*.js
[16:07:46] Deleted src\client\app\modules\core\services\logging/*.js.map
[16:07:46] Deleted src\client\app\modules\core\testing/*.js
[16:07:46] Deleted src\client\app\modules\core\testing/*.js.map
[16:07:46] Deleted src\client\app\modules\core\testing\mocks/*.js
[16:07:46] Deleted src\client\app\modules\core\testing\mocks/*.js.map
[16:07:46] Deleted src\client\app\modules\core\testing\providers/*.js
[16:07:46] Deleted src\client\app\modules\core\testing\providers/*.js.map
[16:07:46] Deleted src\client\app\modules\core\utils/*.js
[16:07:46] Deleted src\client\app\modules\core\utils/*.js.map
[16:07:46] Deleted src\client\app\modules\electron/*.js
[16:07:46] Deleted src\client\app\modules\electron/*.js.map
[16:07:46] Deleted src\client\app\modules\electron\services/*.js
[16:07:46] Deleted src\client\app\modules\electron\services/*.js.map
[16:07:46] Deleted src\client\app\modules\electron\utils/*.js
[16:07:46] Deleted src\client\app\modules\electron\utils/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n/*.js
[16:07:46] Deleted src\client\app\modules\i18n/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\actions/*.js
[16:07:46] Deleted src\client\app\modules\i18n\actions/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\common/*.js
[16:07:46] Deleted src\client\app\modules\i18n\common/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\components/*.js
[16:07:46] Deleted src\client\app\modules\i18n\components/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\effects/*.js
[16:07:46] Deleted src\client\app\modules\i18n\effects/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\reducers/*.js
[16:07:46] Deleted src\client\app\modules\i18n\reducers/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\services/*.js
[16:07:46] Deleted src\client\app\modules\i18n\services/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\states/*.js
[16:07:46] Deleted src\client\app\modules\i18n\states/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\testing/*.js
[16:07:46] Deleted src\client\app\modules\i18n\testing/*.js.map
[16:07:46] Deleted src\client\app\modules\i18n\testing\mocks/*.js
[16:07:46] Deleted src\client\app\modules\i18n\testing\mocks/*.js.map
[16:07:46] Deleted src\client\app\modules\ngrx/*.js
[16:07:46] Deleted src\client\app\modules\ngrx/*.js.map
[16:07:46] Deleted src\client\app\modules\sample/*.js
[16:07:46] Deleted src\client\app\modules\sample/*.js.map
[16:07:46] Deleted src\client\app\modules\sample\actions/*.js
[16:07:46] Deleted src\client\app\modules\sample\actions/*.js.map
[16:07:46] Deleted src\client\app\modules\sample\effects/*.js
[16:07:46] Deleted src\client\app\modules\sample\effects/*.js.map
[16:07:46] Deleted src\client\app\modules\sample\reducers/*.js
[16:07:46] Deleted src\client\app\modules\sample\reducers/*.js.map
[16:07:46] Deleted src\client\app\modules\sample\services/*.js
[16:07:46] Deleted src\client\app\modules\sample\services/*.js.map
[16:07:46] Deleted src\client\app\modules\sample\states/*.js
[16:07:46] Deleted src\client\app\modules\sample\states/*.js.map
[16:07:46] Deleted src\client\app\modules\shared/*.js
[16:07:46] Deleted src\client\app\modules\shared/*.js.map
[16:07:46] Deleted src\client\app\modules\shared\components/*.js
[16:07:46] Deleted src\client\app\modules\shared\components/*.js.map
[16:07:46] Deleted src\client\app\modules\shared\components\navbar/*.js
[16:07:46] Deleted src\client\app\modules\shared\components\navbar/*.js.map
[16:07:46] Deleted src\client\app\modules\shared\components\toolbar/*.js
[16:07:46] Deleted src\client\app\modules\shared\components\toolbar/*.js.map
[16:07:46] Deleted src\client\app\modules\test/*.js
[16:07:46] Deleted src\client\app\modules\test/*.js.map
[16:07:46] Deleted src\client\app\modules\test\e2e/*.js
[16:07:46] Deleted src\client\app\modules\test\e2e/*.js.map
[16:07:46] Deleted src\client\app\modules\test\shorthand/*.js
[16:07:46] Deleted src\client\app\modules\test\shorthand/*.js.map
[16:07:46] Deleted src\client\assets/*.js
[16:07:46] Deleted src\client\assets/*.js.map
[16:07:46] Deleted src\client\assets\favicon/*.js
[16:07:46] Deleted src\client\assets\favicon/*.js.map
[16:07:46] Deleted src\client\assets\i18n/*.js
[16:07:46] Deleted src\client\assets\i18n/*.js.map
[16:07:46] Deleted src\client\assets\svg/*.js
[16:07:46] Deleted src\client\assets\svg/*.js.map
[16:07:46] Deleted src\client\css/*.js
[16:07:46] Deleted src\client\css/*.js.map
[16:07:46] Deleted src\client\scss/*.js
[16:07:46] Deleted src\client\scss/*.js.map
[16:07:46] Finished 'clean.all.src.js' after 731 ms
Das System kann den angegebenen Pfad nicht finden.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-seed-advanced@0.0.0 clean: `npm run clean.js && rimraf node_modules typings && cd nativescript && rimraf node_modules hooks lib platforms && cd .. && npm i`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed-advanced@0.0.0 clean script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

Das System kann den angegebenen Pfad nicht finden. means the specified path cannot be found.

Expected behavior

npm run clean should not fail.

Minimal reproduction of the problem with instructions

$ git clone https://github.com/NathanWalker/angular-seed-advanced.git
$ cd angular-seed-advanced
$ npm install
$ npm run clean

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Windows 7 npm 5.3.0

amirtoole commented 7 years ago

Can you try installing rimraf globally?

npm install -g rimraf

I'm not sure the clean script can work without rimraf being globally available.

erikhofer commented 7 years ago

@hellofornow I still get the same error. This does not seem like a "command not found" as opposed to a "path not found" error.