Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Simple solutions for the: ''You seem to not be depending on "@angular/core" and/or "rxjs". This is an error'' error.
Next
Answered
Maxine Martin
  • 5
Maxine Martin
Asked: May 18, 20222022-05-18T18:20:09+00:00 2022-05-18T18:20:09+00:00In: typescript

Simple solutions for the: ”You seem to not be depending on “@angular/core” and/or “rxjs”. This is an error” error.

  • 5

. Advertisement .

..3..

. Advertisement .

..4..

I get the “you seem to not be depending on “@angular/core” and/or “rxjs”. This is an error” error as the title says. How can I fix it so the error goes away? Here is my detail:

ng build --environment=prod --aot=false --output-path="..." --base-href="..."
npm install @angular/core
ng serve
"ng": "ng",
 "start": "ng serve",
 "build": "ng build",
 "test": "ng test",
 "lint": "ng lint",
 "e2e": "ng e2e"
 
 "@angular/animations": "^4.0.0",
 "@angular/common": "^4.0.0",
 "@angular/compiler": "^4.0.0",
 "@angular/core": "^4.0.0",
 "@angular/forms": "^4.0.0",
 "@angular/http": "^4.0.0",
 "@angular/platform-browser": "^4.0.0",
 "@angular/platform-browser-dynamic": "^4.0.0",
 "@angular/router": "^4.0.0",
 "@types/jquery": "^3.2.17",
 "cli-color": "^1.2.0",
 "core-js": "^2.4.1",
 "font-awesome": "^4.7.0",
 "jquery": "^3.2.1",
 "matrix-js-sdk": "^0.8.5",
 "moment": "^2.18.1",
 "olm": "https://matrix.org/packages/npm/olm/olm-2.2.2.tgz",
 "readline": "^1.3.0",
 "rxjs": "^5.4.1",
 "socket.io-client": "^2.0.3",
 "zone.js": "^0.8.14"
 
 "@angular/cli": "1.2.6",
 "@angular/compiler-cli": "^4.0.0",
 "@angular/language-service": "^4.0.0",
 "@types/jasmine": "~2.5.53",
 "@types/jasminewd2": "~2.0.2",
 "@types/jquery": "^3.2.17",
 "@types/node": "~6.0.60",
 "codelyzer": "~3.0.1",
 "jasmine-core": "~2.6.2",
 "jasmine-spec-reporter": "~4.1.0",
 "karma": "~1.7.0",
 "karma-chrome-launcher": "~2.1.1",
 "karma-cli": "~1.0.1",
 "karma-coverage-istanbul-reporter": "^1.2.1",
 "karma-jasmine": "~1.1.0",
 "karma-jasmine-html-reporter": "^0.2.2",
 "protractor": "~5.1.2",
 "ts-node": "~3.0.4",
 "tslint": "~5.3.2",
 "typescript": "~2.3.3"

When I operated it, I received the error text:

error at Error (native)
  error { Error: EACCES: permission denied, chown ''
  error at Error (native)
  error errno: -13,
  error code: 'EACCES',
  error syscall: 'chown',
  error Please try running this command again as root/Administrator.
  verbose exit [ -13, true ]
The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'

I appreciate any help from you.

npm
  • 2 2 Answers
  • 425 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-27T11:03:46+00:00Added an answer on June 27, 2022 at 11:03 am

    The cause:

    After examining your problem carefully, I find out that the dependencies which you install in your project do not rely on “@angular/core” and/or “rxjs”. Therefore, you have got this error.

    Solution:

    To solve this error, first you have to use app:

    You need to set up all dependencies by running npm install inside of this project folder. Then you have to check whether you have used the most recent CLI version or not (you can refer the way to upgrade guide below). Finally, to use the app, let’s launch ng serve (try npm start if ng serve doesn’t work).

    How can we upgrade the CLI?

    It’s very simple. You only need to use “sudo” on Linux or Mac and run the following command:

    sudo npm uninstall -g angular-cli @angular/cli
    
    npm cache clean --force
    
    sudo npm install -g @angular/cli

    In the case, it does not work, you have to exclude package-lock.json file and node_modules folder from the directory of your project:

    npm install
    
    npm install --save-dev @angular-devkit/build-angular
    
    npm link
    • 1
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Mia Lucas
    2022-05-25T20:45:19+00:00Added an answer on May 25, 2022 at 8:45 pm

    If you are unsure if the below solution will work for your problem, please give it a shot.

    The same problem occurred to me when I was executing below command.

    D:\My_Project>ng serve

    The rest of the steps worked for me.

    D:\My_Project>npm link
    D:\My_Project>ng serve

    Please let me know if this does not work. I will reproduce the error and give you a solution as soon as possible.

    • 9
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.