lbialy / play-ng2-webpack2

Play 2.6.0 + Angular with Angular-CLI + SBT - based build
Other
55 stars 20 forks source link

normalize_file_names.sh not found #10

Closed DPGrev closed 7 years ago

DPGrev commented 7 years ago

When npm install is run the following error is encountered.

Error

chmod: cannot access 'normalize_file_names.sh': No such file or directory

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.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-64-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ui@0.0.0 postinstall: `chmod +x normalize_file_names.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ui@0.0.0 postinstall script 'chmod +x normalize_file_names.sh'.
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 ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     chmod +x normalize_file_names.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/diederik/Documents/easycrypto/temp/angular2play/ui/npm-debug.log

_normalize_filenames.sh cannot be found.

Reason

This is due to the fact that in the last commit the file was deleted, since it was not needed anymore. See: https://github.com/lbialy/play-ng2-webpack2/commit/454fed7b306102e3a3e89ffdbcc77ca28b5f20b1

Possible Fix

Delete "postinstall": "chmod +x normalize_file_names.sh" from package.json

ronniegane commented 7 years ago

Makes sense. It's an easy fix, so if you want to open up a pull request I'm sure @lbialy will approve it quickly.

DPGrev commented 7 years ago

Ok see: https://github.com/lbialy/play-ng2-webpack2/pull/11

lbialy commented 7 years ago

Fixed and merged, thanks!