Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

APIs

Error on npm install - Angular 2

I'm doing the Basics Course for Angular 2 on my pc and using git hub to clone the application to my MAC so I can continue the course outside of my house. However, after cloning the repository and running "npm install", this error appeared:


MacBook-Air-de-Bernardo:basicscourse bepdias$ npm install

fsevents@1.1.2 install /Users/bepdias/Documents/basicscourse/node_modules/fsevents node install

[fsevents] Success: "/Users/bepdias/Documents/basicscourse/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" already installed Pass --update-binary to reinstall or --build-from-source to recompile

photoblog@ postinstall /Users/bepdias/Documents/basicscourse npm run build

photoblog@ build /Users/bepdias/Documents/basicscourse webpack

sh: /Users/bepdias/Documents/basicscourse/node_modules/.bin/webpack: Permission denied

npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! photoblog@ build: webpack npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the photoblog@ build script 'webpack'. 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 photoblog package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs photoblog npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls photoblog npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/bepdias/Documents/basicscourse/npm-debug.log

npm WARN photoblog@ No repository field. npm WARN photoblog@ No license field. npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! photoblog@ postinstall: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the photoblog@ postinstall script 'npm run build'. 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 photoblog package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs photoblog npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls photoblog npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/bepdias/Documents/basicscourse/npm-debug.log

The application was working just fine the last time I commit it to the repository. Does anyone know whats wrong?

Steven Parker
Steven Parker
231,172 Points

Did you mean to post this in the JavaScript category? You can move it now if you want.