M14*_*M14 33 javascript node.js node-modules gulp
我最近将我的nodejs版本更新为10.30.0.一切正常.但我的gulp构建任务不起作用,在旧版本(9.X)上工作正常.这就是我得到的.
gulp[11376]: src\node_contextify.cc:629: Assertion `args[1]->IsString()' failed.
1: node::DecodeWrite
2: node::DecodeWrite
3: uv_loop_fork
4: v8::internal::interpreter::BytecodeDecoder::Decode
5: v8::internal::RegExpImpl::Exec
6: v8::internal::RegExpImpl::Exec
7: v8::internal::RegExpImpl::Exec
8: 00000384E1284281
Run Code Online (Sandbox Code Playgroud)
有人,请帮帮我.
nos*_*sus 109
只需运行命令
npm install natives
Run Code Online (Sandbox Code Playgroud)
jas*_*rty 10
我有两个不同的解决方案在两个不同的工作区中工作.更新到节点10.6.0后的第一个要求我使用此方法:
$rm -rf node_modules
$rm -rf package-lock.json
$npm cache clean
$npm install
Run Code Online (Sandbox Code Playgroud)
第二个工作区不能用于上面的工作,虽然我先尝试过,它要求我重新安装所有gulp依赖项然后运行npm audit fix.例如:
$npm install --dev gulp gulp-sass gulp-autoprefixer
$npm audit fix
Run Code Online (Sandbox Code Playgroud)
希望这有助于某人.
| 归档时间: |
|
| 查看次数: |
19065 次 |
| 最近记录: |