# Npm install get error

**URL:** <https://forum.codewithmosh.com/t/npm-install-get-error/9724>\
**Category:** Angular\
**Created:** [January 5, 2022, 9:17pm UTC](https://forum.codewithmosh.com/t/npm-install-get-error/9724 "2022-01-05T21:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miu](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@miu](https://forum.codewithmosh.com/u/miu)\
**Post date:** [January 5, 2022, 9:17pm UTC](https://forum.codewithmosh.com/t/npm-install-get-error/9724/1 "2022-01-05T21:17:09Z")

</div>

npm ERR! code 1  
it happens when I try to run the code for the Angular Unit test chapter.  
any one has a solution? thank you.

---

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [January 20, 2022, 6:04pm UTC](https://forum.codewithmosh.com/t/npm-install-get-error/9724/2 "2022-01-20T18:04:06Z")

</div>

Good question. I saw your other post as well. Here’s what I did specifically to get the Angular Unit Test chapter working: [SOLUTION: How to get Angular Unit Testing to run ng test](https://forum.codewithmosh.com/t/solution-how-to-get-angular-unit-testing-to-run-ng-test/10090)

Please note that npm i error solution will be different for other chapters. For example, you might need to use nvm to change the version of node to get a successful build going.
