bradtraversy / meanauthapp

Complete MEAN stack app with authentication
242 stars 152 forks source link

The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli #10

Closed jsnsree closed 7 years ago

jsnsree commented 7 years ago

Output from: ng --version. @angular/cli: 1.3.1 node: 6.11.2 os: linux x64

@angular/animations: error
@angular/common: error
@angular/compiler: error
@angular/core: error
@angular/forms: error
@angular/http: error
@angular/platform-browser: error
@angular/platform-browser-dynamic: error
@angular/platform-server: error
@angular/router: error
@angular/cli: error
@angular/compiler-cli: error

ubuntu 16.04 , 64-bit

output from : npm start , ng serve

The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'
Error: The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'
at Object. (/home/jsnsree/.nvm/versions/node/v6.11.2/lib/node_modules/@angular/cli/node_modules//src/index.js:14:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/jsnsree/.nvm/versions/node/v6.11.2/lib/node_modules/@angular/cli/tasks/eject.js:10:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

in package.json file


{
  "name": "meanauthapp",
  "version": "1.0.0",
  "description": "MEAN stack authentication app",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node app"
  },
  "dependencies": {
    "@angular/compiler-cli": "^4.3.6",
    "bcrypt": "^1.0.2",
    "bcryptjs": "*",
    "body-parser": "*",
    "cors": "*",
    "express": "*",
    "jsonwebtoken": "*",
    "mongoose": "*",
    "passport": "*",
    "passport-jwt": "*"
  },
  "author": "jsnsree",
  "license": "ISC",
  "devDependencies": {
    "@angular/cli": "^1.3.2"
  }
}

screenshot from 2017-08-26 17-44-50

TheForester05 commented 7 years ago

I have this error too.

TheForester05 commented 7 years ago

Try this, it's working for me

first : npm install -g @angular/cli 2 : ng new "your project name" 3 : ng serve : erro >>> do not wrray 4 : npm install @angular/compiler-cli 5 : npm install typescript 6 : npm install @angular/cli

jsnsree commented 7 years ago

Delete the node_module folder and again install - npm install