myelxx
myelxx

Reputation: 402

Cannot find module 'C:\Users\username\project\node_modules\@angular\cli\bin\ng'

Encountered error regarding to cloning a project from tfs then perform the following:

npm install

npm start


internal/modules/cjs/loader.js:796

throw err; ^

Error: Cannot find module 'C:\Users\username\project\node_modules\@angular\cli\bin\ng'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}


npm ERR! code ELIFECYCLE

npm ERR! errno 1

Image attached for clear error display: error screenshot attached

Upvotes: 4

Views: 9398

Answers (2)

Charuka Herath
Charuka Herath

Reputation: 328

Remove node modules folder. Re-Install the latest npm version. Then run npm i.

Upvotes: 0

ryan
ryan

Reputation: 56

Remove node modules folder. Re-Install the latest npm version. Then run

   npm install 

command.

Upvotes: 3

Related Questions