最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

在共享主机上使用vue

IT培训 admin 9浏览 0评论

在共享主机上使用vue

[当我尝试在共享托管服务上构建Vue项目时,它显示错误:

<< img src =“ ==” alt =“查看此错误”>

但是当我在本地环境上运行npm run build时,它就可以正常工作。

错误详细信息:

     Building for production.../home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:53
      throw new Error(`Failed to create the worker pool with workerId: ${workerId} and ${''}configuration: ${JSON.stringify(options)}. Please verify if you hit the OS open files limit.`);
      ^

Error: Failed to create the worker pool with workerId: 4 and configuration: {"parallelJobs":20}. Please verify if you hit the OS open files limit.
    at new PoolWorker (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:53:13)
    at WorkerPool.createWorker (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:337:23)
    at WorkerPool.distributeJob (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:331:28)
    at runQueue (/home/intechpe/onlineku-admin/node_modules/neo-async/async.js:8097:9)
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickCallback (internal/process/next_tick.js:181:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/intechpe/.npm/_logs/2019-05-17T09_44_00_691Z-debug.log
回答如下:

以前,在运行npm run build时,我在cPanel ssh上遇到相同的问题。但是当我使用此命令时,它是有效的:

在共享主机上使用vue

[当我尝试在共享托管服务上构建Vue项目时,它显示错误:

<< img src =“ ==” alt =“查看此错误”>

但是当我在本地环境上运行npm run build时,它就可以正常工作。

错误详细信息:

     Building for production.../home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:53
      throw new Error(`Failed to create the worker pool with workerId: ${workerId} and ${''}configuration: ${JSON.stringify(options)}. Please verify if you hit the OS open files limit.`);
      ^

Error: Failed to create the worker pool with workerId: 4 and configuration: {"parallelJobs":20}. Please verify if you hit the OS open files limit.
    at new PoolWorker (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:53:13)
    at WorkerPool.createWorker (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:337:23)
    at WorkerPool.distributeJob (/home/intechpe/onlineku-admin/node_modules/thread-loader/dist/WorkerPool.js:331:28)
    at runQueue (/home/intechpe/onlineku-admin/node_modules/neo-async/async.js:8097:9)
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickCallback (internal/process/next_tick.js:181:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/intechpe/.npm/_logs/2019-05-17T09_44_00_691Z-debug.log
回答如下:

以前,在运行npm run build时,我在cPanel ssh上遇到相同的问题。但是当我使用此命令时,它是有效的:

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论