Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.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
Windows Discord JS npm安装Discord.JS问题 C:\Users\PC\Documents\bot>npm安装discord.js npm WARN tar EPERM:不允许操作,打开“C:\Users\PC\Documents\bot\node\u modules\.staging\setimmediate-ba27c7e7\LICENSE.txt” npm WARN tar EPERM:不允许操作,打开'C:\Users\PC\Documents\bot\node\u modules\.staging\discord.js-4ced0e0d\webpack\discord.js.LICENSE.txt' npm错误!我从没打过电话! npm错误!这是npm本身的一个错误。请通过以下地址报告此错误: npm错误! npm错误!此运行的完整日志可在以下位置找到: npm错误!C:\Users\PC\AppData\Roaming\npm缓存\\u logs\2020-12-13T21\u 02\u 55\u 389Z-debug.log_Windows_Npm_Discord.js - Fatal编程技术网

Windows Discord JS npm安装Discord.JS问题 C:\Users\PC\Documents\bot>npm安装discord.js npm WARN tar EPERM:不允许操作,打开“C:\Users\PC\Documents\bot\node\u modules\.staging\setimmediate-ba27c7e7\LICENSE.txt” npm WARN tar EPERM:不允许操作,打开'C:\Users\PC\Documents\bot\node\u modules\.staging\discord.js-4ced0e0d\webpack\discord.js.LICENSE.txt' npm错误!我从没打过电话! npm错误!这是npm本身的一个错误。请通过以下地址报告此错误: npm错误! npm错误!此运行的完整日志可在以下位置找到: npm错误!C:\Users\PC\AppData\Roaming\npm缓存\\u logs\2020-12-13T21\u 02\u 55\u 389Z-debug.log

Windows Discord JS npm安装Discord.JS问题 C:\Users\PC\Documents\bot>npm安装discord.js npm WARN tar EPERM:不允许操作,打开“C:\Users\PC\Documents\bot\node\u modules\.staging\setimmediate-ba27c7e7\LICENSE.txt” npm WARN tar EPERM:不允许操作,打开'C:\Users\PC\Documents\bot\node\u modules\.staging\discord.js-4ced0e0d\webpack\discord.js.LICENSE.txt' npm错误!我从没打过电话! npm错误!这是npm本身的一个错误。请通过以下地址报告此错误: npm错误! npm错误!此运行的完整日志可在以下位置找到: npm错误!C:\Users\PC\AppData\Roaming\npm缓存\\u logs\2020-12-13T21\u 02\u 55\u 389Z-debug.log,windows,npm,discord.js,Windows,Npm,Discord.js,如果您有npm版本5或更高版本,请先尝试以下操作: C:\Users\PC\Documents\bot> npm install discord.js npm WARN tar EPERM: operation not permitted, open 'C:\Users\PC\Documents\bot\node_modules\.staging\setimmediate-ba27c7e7\LICENSE.txt' npm WARN tar EPERM: operation not per

如果您有npm版本5或更高版本,请先尝试以下操作:

C:\Users\PC\Documents\bot> npm install discord.js
npm WARN tar EPERM: operation not permitted, open 'C:\Users\PC\Documents\bot\node_modules\.staging\setimmediate-ba27c7e7\LICENSE.txt'
npm WARN tar EPERM: operation not permitted, open 'C:\Users\PC\Documents\bot\node_modules\.staging\discord.js-4ced0e0d\webpack\discord.js.LICENSE.txt'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\PC\AppData\Roaming\npm-cache\_logs\2020-12-13T21_02_55_389Z-debug.log
否则:

$ npm cache verify

此错误应与缓存相关,如果不是,请尝试重新安装npm和节点。

如果您有npm版本5或更高版本,请先尝试以下操作:

C:\Users\PC\Documents\bot> npm install discord.js
npm WARN tar EPERM: operation not permitted, open 'C:\Users\PC\Documents\bot\node_modules\.staging\setimmediate-ba27c7e7\LICENSE.txt'
npm WARN tar EPERM: operation not permitted, open 'C:\Users\PC\Documents\bot\node_modules\.staging\discord.js-4ced0e0d\webpack\discord.js.LICENSE.txt'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\PC\AppData\Roaming\npm-cache\_logs\2020-12-13T21_02_55_389Z-debug.log
否则:

$ npm cache verify

此错误应该与缓存有关,如果不是,请尝试重新安装npm和节点。

看起来您需要权限才能安装npm。。。在unix系统上,这需要在
npm安装前安装
sudo
。。。不确定Windows看起来您需要安装npm的权限。。。在unix系统上,这需要在
npm安装前安装
sudo
。。。不太清楚Windows