Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 运行npx更新时出错,找不到集合阻塞_Android_Angular_Ionic Framework_Npx - Fatal编程技术网

Android 运行npx更新时出错,找不到集合阻塞

Android 运行npx更新时出错,找不到集合阻塞,android,angular,ionic-framework,npx,Android,Angular,Ionic Framework,Npx,我试着使用“npx更新”。我完全不知道为什么我会犯这样的错误,似乎连一个起点都找不到。我唯一使用npx的是电容器(带有离子框架)。任何关于原因的帮助,或者修复,或者只是指出正确的方向都会有所帮助 C:\dev\p\bas>npx update npx: installed 658 in 28.218s [23:34:41] using file ~C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\

我试着使用“npx更新”。我完全不知道为什么我会犯这样的错误,似乎连一个起点都找不到。我唯一使用npx的是电容器(带有离子框架)。任何关于原因的帮助,或者修复,或者只是指出正确的方向都会有所帮助

C:\dev\p\bas>npx update
npx: installed 658 in 28.218s
[23:34:41] using file ~C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\lib\updatefile.js
[23:34:41] starting update.default
[23:34:41] √ running: init

  Current updaters: init

 no updaters were saved.
[23:34:42] finished update.default √ 410ms
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'set-blocking'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at process.<anonymous> (C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\bin\update.js:4:3)
    at process.emit (events.js:203:15)
    at process.exit (internal/process/per_thread.js:168:15)
    at C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\bin\update.js:55:15
    at C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\node_modules\base-generators\index.js:482:13
    at C:\Users\Hunter\AppData\Roaming\npm-cache\_npx\6000\node_modules\update\node_modules\async-each-series\index.js:15:40
C:\dev\p\bas>npx更新
npx:在28.218s中安装658
[23:34:41]使用文件~C:\Users\Hunter\AppData\Roaming\npm cache\\u npx\6000\node\u modules\update\lib\updatefile.js
[23:34:41]正在启动update.default
[23:34:41] √ 运行:init
当前更新程序:init
未保存任何更新程序。
[23:34:42]已完成更新。默认值√ 410毫秒
内部/modules/cjs/loader.js:638
犯错误;
^
错误:找不到模块“设置阻塞”
位于Function.Module.\u resolveFilename(internal/modules/cjs/loader.js:636:15)
at Function.Module._load(内部/modules/cjs/loader.js:562:25)
at Module.require(内部/modules/cjs/loader.js:692:17)
根据需要(内部/modules/cjs/helpers.js:25:18)
在这个过程中。(C:\Users\Hunter\AppData\Roaming\npm cache\\u npx\6000\node\u modules\update\bin\update.js:4:3)
在process.emit(events.js:203:15)
在process.exit(internal/process/per_thread.js:168:15)
在C:\Users\Hunter\AppData\Roaming\npm cache\\u npx\6000\node\u modules\update\bin\update.js:55:15
在C:\Users\Hunter\AppData\Roaming\npm cache\\u npx\6000\node\u modules\update\node\u modules\base generators\index.js:482:13
在C:\Users\Hunter\AppData\Roaming\npm cache\\u npx\6000\node\u modules\update\node\u modules\async each series\index.js:15:40

只需运行npm命令即可安装缺失的模块:

npm安装集阻塞

然后再次运行
npx update


希望有帮助!:)

帮助我解决错误的是首先更新我的npm版本:

  • npm安装-gnpm@latest
  • npm安装-g集阻塞
  • npx更新

  • 因为我不在npm环境中,所以在全球范围内安装它对我来说很有效。命令:
    npm install-g set blocking
    。我还尝试了
    -g
    选项,包括
    sudo
    。我尝试了
    warn add set blocking
    带和不带
    sudo
    都不起作用。每次运行npx更新时,我仍然会收到相同的“设置阻塞”错误。