angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve error

Open david-ni opened this issue 8 years ago • 7 comments

when I run ng serve use angular cli 6.0.8 error come out as following:

95% emitting LicenseWebpackPluginError: ENOENT: no such file or directory, open 'E:\working\project\cloud-web-new\node_modules\_@[email protected]@@angular\package.json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at LicenseExtractor.readPackageJson (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseExtractor.js:126:23)
    at LicenseExtractor.parsePackage (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseExtractor.js:23:32)
    at ModuleProcessor.processPackage (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\ModuleProcessor.js:39:46)
    at ModuleProcessor.processFile (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\ModuleProcessor.js:36:21)
    at fileCallback (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseWebpackPlugin.js:101:61)
    at moduleCallback (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseWebpackPlugin.js:108:21)    at E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseWebpackPlugin.js:120:29
    at Array.forEach (<anonymous>)
    at emitCallback (E:\working\project\cloud-web-new\node_modules\[email protected]@license-webpack-plugin\dist\LicenseWebpackPlugin.js:86:32)
    at _err0 (eval at create (E:\working\project\cloud-web-new\node_modules\[email protected]@tapable\lib\HookCodeFactory.js:24:12), <anonymous>:19:1)
    at callback (E:\working\project\cloud-web-new\node_modules\[email protected]@copy-webpack-plugin\dist\index.js:77:17)
    at E:\working\project\cloud-web-new\node_modules\[email protected]@copy-webpack-plugin\dist\index.js:118:24
    at <anonymous>

here is my package.json

{
  "name": "cloud-web-new",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^6.0.3",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
    "core-js": "^2.5.4",
    "rxjs": "^6.0.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.6.8",
    "@angular/cli": "~6.0.8",
    "@angular/common": "^6.0.5",
    "@angular/compiler-cli": "^6.0.3",
    "@angular/language-service": "^6.0.3",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.2.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.3.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "~2.7.2"
  }
}

david-ni avatar Jun 14 '18 03:06 david-ni

Me too

q98765543221 avatar Jun 20 '18 08:06 q98765543221

Me too

gaojinbo010 avatar Jul 02 '18 11:07 gaojinbo010

Same here, anymore have found a solution ?

ShakurOo avatar Jul 04 '18 20:07 ShakurOo

Install with yarn can be OK

nzbin avatar Jul 13 '18 07:07 nzbin

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?

You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

filipesilva avatar Jul 19 '18 12:07 filipesilva

I'm sorry, but we can't reproduce the problem following the instructions you provided. Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue. Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.

If the problem persists, please open a new issue following our submission guidelines.

A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

alan-agius4 avatar Aug 24 '18 15:08 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.