我最近从旧版本升级到meteor 1.4.1.1.但现在我似乎无法启动我的应用程序了!
救命!
升级后,我进入我的应用程序的目录,然后运行"meteor --port 7123",这曾经(工作)启动我的应用程序在以前的流星版本,但似乎无法通过此错误消息:
在运行meteor --port 7123后,我得到:正在下载meteor-tool@1.1.10 ...此过程永远不会完成,然后会出现附加消息中指示的错误消息.
一个小小的研究表明错误中的ENOENT意味着错误NO ENTity.我可能有文件的问题,或者我的路径或文件名错了.我该如何纠正?
任何帮助将不胜感激.
你们知道什么可能会导致这个错误吗?我们将非常感谢您的帮助。这个错误突然开始,无法找出原因。我找到的与此主题相关的任何来源也没有帮助,例如 npm 清除缓存等。
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\dGhpP2cdrThITYfJW5zYTASPDxgkrHRsKGV+DHjA9zg=\0.1644007067863.49adoDywz9oh2itwLAOxco3SX+8Yk8UjPaOwcMHXKIw=.webp'
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\4XzO9vkSresQcu4SX685Pbl3Cb8+GLnoRVSy6EWXt5Y=\0.1644007067864.yV8JGEcK4N5RHfOP1YCy50EVKU0ZtA8shhISYdcO9cQ=.webp'
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\P0c16eKt464UeqAGlMPK9QsWSCanffokfdynMp877IQ=\0.1644007067876.CuEqtaf2wyvhSmvWM7JEkbGjhFFUEs9KqFQ-2+tjghc=.webp'
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\-Q0UZI-9z63T0kTLDD9WriKzJMRU4ezA+i4LmDQDXlM=\0.1644007067831.UiZIuijWkV1W07Pfo02XjEvnKc-DlxzW0O3wLCqz-hM=.webp'
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\INra01gHa2-vzBW63AhvPMn+t5fHxh8cp5pivirhiRA=\0.1644007067837.NvV+tAwZT5uhgQUBvxIUsk1gLqUnDgarmgOlSAv2Oos=.webp'
error - uncaughtException: Error: ENOENT: no such file or directory, open 'C:\Users\merth\Documents\GitHub\nextjs\.next\cache\images\5IOk0AWjSzsxeWX3JUtAxUOeibv3HkY1OaLS3xWD1P0=\0.1644007067823.BNmZ25sRS8r8aebBo4tpl77uOHrZp-hK7huYDJCA2YI=.webp'
Run Code Online (Sandbox Code Playgroud)
我的一些图像组件;
<figure className='w-full h-full overflow-hidden …Run Code Online (Sandbox Code Playgroud) 我在 Lambda cloudwatch 日志中收到以下错误
ERROR [Error: ENOENT: no such file or directory, mkdir '/var/task/node_modules/@types/nexus-typegen'] {
errno: -2,
code: 'ENOENT',
syscall: 'mkdir',
path: '/var/task/node_modules/@types/nexus-typegen'
}
Run Code Online (Sandbox Code Playgroud)
我尝试修改 webpack 以强制捆绑目录,例如:
new CopyWebpackPlugin({
patterns: [
{from: "./node_modules/@types/nexus-typegen"}
]
})
Run Code Online (Sandbox Code Playgroud)
我还将我的 prisma makeSchema 修改为GenerateArtifacts: false
MakeSchema({
types: typeDefs,
plugins: [
nexusPrisma({ experimentalCRUD: true, shouldGenerateArtifacts: false }),
]
Run Code Online (Sandbox Code Playgroud)
但到目前为止没有任何效果...有人有解决方法吗?
我正在开发一个通过 gui 控制 gulp 任务的电子应用程序。您单击一个任务,它就会运行。很简单的东西。在 macOS 上,当我运行 npm start 时,它运行得很好,但是当我用 electro-packager 打包它时,出现以下错误:
Uncaught Exception:
Error: spawn gulp ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Run Code Online (Sandbox Code Playgroud)
这是代码:
exports.runTask = (taskName, projPath) => {
const cp = spawn('gulp', [ taskName ], {cwd: projPath});
cp.stdout.setEncoding('utf8');
cp.stdout.on('data', data => {
console.log(data);
mainWindow.webContents.send('task-console-data', data);
});
cp.stderr.setEncoding('utf8');
cp.stderr.on('data', data => {
console.error(data);
displayNotification({text: `[error] ${data}`});
mainWindow.webContents.send('task-console-data', `[error] ${data}`);
});
cp.on('exit', code => {
if (code === 0) { …Run Code Online (Sandbox Code Playgroud) 添加 ERB 加载程序并将.erb文件扩展名添加到我的application包(使用webpacker)后,我收到以下错误:
ERROR in ./app/webpack/packs/application.js.erb
Module build failed: Error: spawn bin/rails ENOENT
at _errnoException (util.js:1024:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
@ multi (webpack)-dev-server/client?http://localhost:3035 ./app/webpack/packs/application.js.erb
Run Code Online (Sandbox Code Playgroud)
样品hello_erb.js.erb包也会发生这种情况。
这是一个重现问题的示例应用程序:https : //github.com/jonhue/test_app
我创建了一些代码来使用 node.js 后端的 python 函数。当在我的 ubuntu 计算机上运行它时,它可以工作 - 但是!当在他的 Windows 机器上运行代码时,它会给出这个堆栈跟踪。
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Run Code Online (Sandbox Code Playgroud)
这是node.js 文件
const spawn = require("child_process").spawn;
const pythonProcess = exec('python',["./script.py", 2, 4]);
pythonProcess.stdout.on('data', function(data) {
console.log(data.toString('utf-8'))
} )
Run Code Online (Sandbox Code Playgroud)
这是 …
我正在使用开始一个新的React-Native项目
博览会init firstexpo
但是我在命令提示符处收到此错误
错误:生成cmd ENOENT
PS C:\Users\Alex\testing\firstexpo> expo start
[16:21:09] Starting project at C:\Users\Alex\testing\firstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:\Users\Alex\testing\firstexpo>
Run Code Online (Sandbox Code Playgroud)
npm启动错误找不到模块“ opn”
[16:38:49] Starting project at C:\Users\Alex\testing\firstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set …Run Code Online (Sandbox Code Playgroud) 我想我做了一些事情并打破了节点.我试过改变路径,但不知道我在做什么,也不想让问题变得更糟.尝试卸载并重新安装节点都无济于事.任何帮助或想法都会很棒.
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./bin/www start`
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Run Code Online (Sandbox Code Playgroud) 我正在构建我的第一个电子应用程序,但我无法打包它。
当我使用npm start一切进行测试时,但当我尝试打包它并完成时,我运行它,但我得到了这样的东西ENOENT: no such file or directory, lstat。
我有一些这样的来源。
fs.copy(path.resolve('src/app/resource/'), dir + '/resource/', e => {
if (e) {
reject(e);
return;
}
resolve(true);
});
Run Code Online (Sandbox Code Playgroud)
这会将文件复制到指定的目录,这似乎是错误的原因。
编辑:
我启用了 devtools 并为 Windows 创建了安装程序,但刚刚得到了这个。
似乎我的文件不包含在构建中。
这是我的 package.json
{
"name": "exporter",
"productName": "Exporter",
"version": "0.0.1",
"description": "",
"license": "MIT",
"repository": "",
"author": {
"name": "",
"email": "",
"url": "none"
},
"scripts": {
"start": "electron .",
"build": "electron-packager . --out=/mnt/Busy\\ Drive/dist/exporter --asar --overwrite --all",
"pack": "build --dir",
"dist": "build -wl" …Run Code Online (Sandbox Code Playgroud) 我需要阅读pdf文件,并使用pdf-text-extract。它在我的本地主机上完美运行。但是,当我尝试在服务器上运行程序时,出现以下错误
spawn called
{ '0': 'pdftotext',
'1':
[ '-layout',
'-enc',
'UTF-8',
'/tmp/the_file_name.pdf',
'-' ],
'2': { encoding: 'UTF-8', layout: 'layout', splitPages: true } }
events.js:72
throw er; // Unhandled 'error' event
Error: spawn ENOENT
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)
Run Code Online (Sandbox Code Playgroud)
这是我的用法 pdf-text-extract
var extract = require('pdf-text-extract');
.....
.then (function () {
console.log(fs.readdirSync('/tmp'));
var extractAsync = Promise.promisify(extract);
return extractAsync(filePath);
})
.catch (function (err) {
console.log(err);
});
Run Code Online (Sandbox Code Playgroud)
如您所见,我添加了catch,但是为什么错误是未处理的“错误”事件。
我还检查了文件是否存在fs.readdirSync。是什么导致错误,我该如何解决?