elm-community / elm-webpack-starter

Boilerplate for developing Elm apps on Webpack

Home Page:http://elm-community.org/elm-webpack-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue on windows with rimraf?

zeukterialpneumaion opened this issue · comments

i am getting an issue with rimraf not being recognised on windows....
apologies if this is an error on my side::
::
C:\Users\aj\Documents\programminglanguages\elm\my-elm-project [master]> npm run reinstall

elm-webpack-starter@0.8.0 reinstall C:\Users\aj\Documents\programminglanguages\elm\my-elm-project
rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && elm package install

'rimraf' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\aj\AppData\Roaming\npm\node_modules\npm\bin\npm-c
li.js" "run" "reinstall"
npm ERR! node v4.1.0
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! elm-webpack-starter@0.8.0 reinstall: rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && e lm package install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elm-webpack-starter@0.8.0 reinstall script 'rimraf node_modules && npm uninstall -g elm && npm i
-g elm && npm i && elm package install'.
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 elm-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && elm package install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs elm-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls elm-webpack-starter
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\aj\Documents\programminglanguages\elm\my-elm-project\npm-debug.log

hmm,looks my bad, if you're doing a fresh clone, it won't have rimraf installed (duh!) need to update the repo, in the meantime, try installing rimraf globally first, then run the reinstall script..

npm i rimraf
npm run reinstall

Updated the repo now..

hi ! thankyou for updating!! So, updated tried once more....hmmm... still getting errors unfortunately... sure its on my sid now could you help?
...
elm-webpack-starter@0.8.1 C:\Users\aj\Documents\programminglanguages\elm\my-elm-project
-- rimraf@2.5.4 -- glob@7.1.1
+-- fs.realpath@1.0.0
+-- inflight@1.0.6
| -- wrappy@1.0.2 +-- inherits@2.0.3 +-- minimatch@3.0.3 | -- brace-expansion@1.1.6
| +-- balanced-match@0.4.2
| -- concat-map@0.0.1 +-- once@1.4.0 -- path-is-absolute@1.0.1

The system cannot find the path specified.

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\aj\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "reinstall"
npm ERR! node v4.1.0
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! elm-webpack-starter@0.8.1 reinstall: npm i rimraf && rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && elm package install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elm-webpack-starter@0.8.1 reinstall script 'npm i rimraf && rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && elm package install'.
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 elm-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i rimraf && rimraf node_modules && npm uninstall -g elm && npm i -g elm && npm i && elm package install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs elm-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls elm-webpack-starter
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! Please include the following file with any support request:
npm-debug.txt

Hmm, not a Windows user, so I'm just guessing here. I would try:

  1. Install rimraf globally npm i rimraf -g, then try again..
  2. If that fails, you don't really need rimraf. if you freshly cloned it, you can just do the install commands individually: npm i -g elm, elm package install, and npm i.

Note: rimraf is a Node package which is supposed to provide a normalized command for deleting a directory. I believe on Windows, the same can be accomplished via the rmdir command..