Node.js npm启动时获取错误

Node.js npm启动时获取错误,node.js,angular,npm,node-modules,Node.js,Angular,Npm,Node Modules,运行命令npm start时出错。我有节点版本v6.9.1和npm版本3.10.8 以下是我的系统的路径变量: 用户变量路径:C:\Users\Abdul Ovais\AppData\Roaming\npm 系统变量路径:C:\Program Files\nodejs\ 以下是错误行: Abdul Ovais@DESKTOP-31UBAGF /xampp/htdocs/ees-angular-client $ npm start > EES@1.0.0 start D:\xampp\

运行命令
npm start
时出错。我有节点版本
v6.9.1
和npm版本
3.10.8

以下是我的系统的路径变量:

  • 用户变量路径:
    C:\Users\Abdul Ovais\AppData\Roaming\npm
  • 系统变量路径:
    C:\Program Files\nodejs\
以下是错误行:

Abdul Ovais@DESKTOP-31UBAGF /xampp/htdocs/ees-angular-client
$ npm start

> EES@1.0.0 start D:\xampp\htdocs\ees-angular-client
> npm run server:dev


> EES@1.0.0 server:dev D:\xampp\htdocs\ees-angular-client
> webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/

Error: Cannot find module './system/supports-colors'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\xampp\htdocs\ees-angular-client\node_modules\awesome-typescript-loader\node_modules\colors\lib\colors.js:39:24)
    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.<anonymous> (D:\xampp\htdocs\ees-angular-client\node_modules\awesome-typescript-loader\node_modules\colors\safe.js:8:14)
    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.<anonymous> (D:\xampp\htdocs\ees-angular-client\node_modules\awesome-typescript-loader\src\instance.ts:9:14)
    at Module._compile (module.js:570:32)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "server:dev"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! EES@1.0.0 server:dev: `webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the EES@1.0.0 server:dev script 'webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the EES package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs EES
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls EES
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\xampp\htdocs\ees-angular-client\npm-debug.log

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! EES@1.0.0 start: `npm run server:dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the EES@1.0.0 start script 'npm run server:dev'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the EES package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run server:dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs EES
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls EES
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\xampp\htdocs\ees-angular-client\npm-debug.log
阿卜杜勒Ovais@DESKTOP-31UBAGF/xampp/htdocs/ees客户端 $npm开始 > EES@1.0.0启动D:\xampp\htdocs\ees客户端 >npm运行服务器:dev > EES@1.0.0服务器:dev D:\xampp\htdocs\client >webpack dev server--config/webpack.dev.js--progress--profile--watch--content base src/ 错误:找不到模块“./system/supports colors” 在Function.Module.\u解析文件名(Module.js:469:15) 在Function.Module.\u加载(Module.js:417:25) at Module.require(Module.js:497:17) 根据需要(内部/module.js:20:19) 反对。(D:\xampp\htdocs\ees angular client\node\u modules\awesome typescript loader\node\u modules\colors\lib\colors.js:39:24) 在模块处编译(Module.js:570:32) 在Object.Module.\u extensions..js(Module.js:579:10) 在Module.load(Module.js:487:32) 在tryModuleLoad时(module.js:446:12) 在Function.Module.\u加载(Module.js:438:3) at Module.require(Module.js:497:17) 根据需要(内部/module.js:20:19) 反对。(D:\xampp\htdocs\ees angular client\node\u modules\awesome typescript loader\node\u modules\colors\safe.js:8:14) 在模块处编译(Module.js:570:32) 在Object.Module.\u extensions..js(Module.js:579:10) 在Module.load(Module.js:487:32) 在tryModuleLoad时(module.js:446:12) 在Function.Module.\u加载(Module.js:438:3) at Module.require(Module.js:497:17) 根据需要(内部/module.js:20:19) 反对。(D:\xampp\htdocs\ees angular client\node\u modules\awesome typescript loader\src\instance.ts:9:14) 在模块处编译(Module.js:570:32) npm错误!Windows NT 10.0.14393 npm错误!argv“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“run”“server:dev” npm错误!节点v6.9.1 npm错误!npm v3.10.8 npm错误!代码失效循环 npm错误!EES@1.0.0服务器:dev:`webpack dev server--config/webpack.dev.js--progress--profile--watch--content-base src/` npm错误!退出状态1 npm错误! npm错误!失败EES@1.0.0服务器:开发脚本“webpack dev server--config config/webpack.dev.js--progress--profile--watch--content base src/”。 npm错误!确保已安装最新版本的node.js和npm。 npm错误!如果您这样做,这很可能是EES包的问题, npm错误!与npm本身无关。 npm错误!告诉作者此操作在您的系统上失败: npm错误!webpack dev server--config/webpack.dev.js--progress--profile--watch--content base src/ npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息: npm错误!新产品管理 npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息: npm错误!npm所有者ls EES npm错误!上面可能还有其他日志输出。 npm错误!请在任何支持请求中包括以下文件: npm错误!D:\xampp\htdocs\ees angular client\npm-debug.log npm错误!Windows NT 10.0.14393 npm错误!argv“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“start” npm错误!节点v6.9.1 npm错误!npm v3.10.8 npm错误!代码失效循环 npm错误!EES@1.0.0start:`npm运行服务器:dev` npm错误!退出状态1 npm错误! npm错误!失败EES@1.0.0启动脚本“npm运行服务器:dev”。 npm错误!确保已安装最新版本的node.js和npm。 npm错误!如果您这样做,这很可能是EES包的问题, npm错误!与npm本身无关。 npm错误!告诉作者此操作在您的系统上失败: npm错误!npm运行服务器:dev npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息: npm错误!新产品管理 npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息: npm错误!npm所有者ls EES npm错误!上面可能还有其他日志输出。 npm错误!请在任何支持请求中包括以下文件: npm错误!D:\xampp\htdocs\ees angular client\npm-debug.log
您似乎正在尝试加载一些模块:“/system/supports colors”,编译器找不到它是的,我知道,但我如何解决这个问题?您必须在代码中搜索项目中的这一行,并确保您尝试加载的模块存在,或者在不需要的情况下删除它。发布您的代码,请让我通过解决相同的问题另一种方式我有同样的问题,它在centos上工作,但在windows上(BoothDocker和docker for windows)它不工作!!!您似乎正在尝试加载某些模块:“./system/supports colors”,编译器找不到它。是的,我知道,但我如何解决这个问题?您必须在代码中搜索项目中的这一行,并确保您尝试加载的模块存在,或者在不需要的情况下将其删除。发布您的代码,请我让其他人解决相同的问题wayI也有同样的问题,它在centos上工作,但在windows上(BoothDocker和docker for windows)不工作!!!