gpt4 book ai didi

node.js - 我在npm run dev时遇到错误而没有提示

转载 作者:行者123 更新时间:2023-12-03 07:38:55 25 4
gpt4 key购买 nike

87% sealing module hashinginternal/crypto/hash.js:84
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or
Buffer,TypedArray或DataView的实例。收到未定义
    at Hash.update (internal/crypto/hash.js:84:11)re
at BulkUpdateDecorator.update (C:\Users\#root\OneDrive\Desktop\restaurant\no
de_modules\webpack\lib\util\createHash.js:49:14)
at NormalModule.updateHash (C:\Users\#root\OneDrive\Desktop\restaurant\node_
modules\webpack\lib\NormalModule.js:1115:8)
at Compilation.createModuleHashes (C:\Users\#root\OneDrive\Desktop\restauran
t\node_modules\webpack\lib\Compilation.js:2817:12)
at C:\Users\#root\OneDrive\Desktop\restaurant\node_modules\webpack\lib\Compi
lation.js:2155:11
at Hook.eval [as callAsync] (eval at create (C:\Users\#root\OneDrive\Desktop
\restaurant\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1
)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\#root\OneDrive\Desktop
\restaurant\node_modules\tapable\lib\Hook.js:18:14)
at C:\Users\#root\OneDrive\Desktop\restaurant\node_modules\webpack\lib\Compi
lation.js:2115:36
at Hook.eval [as callAsync] (eval at create (C:\Users\#root\OneDrive\Desktop
\restaurant\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1
)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\#root\OneDrive\Desktop
\restaurant\node_modules\tapable\lib\Hook.js:18:14) {
code: 'ERR_INVALID_ARG_TYPE'
}
npm ERR! code 1
npm ERR! path C:\Users\#root\OneDrive\Desktop\restaurant
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c webpack --progress --confi
g=C:\\Users\\#root\\OneDrive\\Desktop\\restaurant\\node_modules\\laravel-mix\\se
tup\\webpack.config.js

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\#root\AppData\Local\npm-cache\_logs\2021-01-11T16_06_38_59
9Z-debug.log
npm ERR! code 1
npm ERR! path C:\Users\#root\OneDrive\Desktop\restaurant
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c mix

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\#root\AppData\Local\npm-cache\_logs\2021-01-11T16_06_39_65
1Z-debug.log
npm ERR! code 1
npm ERR! path C:\Users\#root\OneDrive\Desktop\restaurant
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run development

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\#root\AppData\Local\npm-cache\_logs\2021-01-11T16_06_39_93
3Z-debug.log
我尝试
npm chache clean --force
rm -rf node_modules
npm安装
npm run dev
这不起作用
我的项目在laravel 8上
使用ui ^ 3.0
验证
而且我也进行全新安装,但也无法正常工作
我使用jetstream的另一个过程:livewire npm工作正常
拼写错误

最佳答案

我遇到了这个问题,不得不更改我的package.json。它看起来像:

"devDependencies": {
"axios": "^0.21",
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"postcss": "^8.1.14"
},
但是在我将其更改为:
"devDependencies": {
"axios": "^0.21",
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"postcss": "^8.1.14",
"sass-loader": "^10.1.1",
"resolve-url-loader": "^3.1.2"
},
我注意到只有在webpack.mix.js中使用 mix.sass()时才会出现此错误。

关于node.js - 我在npm run dev时遇到错误而没有提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65671834/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com