Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.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
Node.js NodeJS:您使用的是node的预发布版本,可能无法按预期工作_Node.js_Warnings - Fatal编程技术网

Node.js NodeJS:您使用的是node的预发布版本,可能无法按预期工作

Node.js NodeJS:您使用的是node的预发布版本,可能无法按预期工作,node.js,warnings,Node.js,Warnings,我正在使用nodejsv10.19.0 我不认为到目前为止我有任何冲突,但这是我应该担心的事情吗?我在控制台中收到以下警告消息: You are using a pre-release version of node and things may not work as expected 当我尝试npm安装-g npm时,会出现以下错误: (node:9105) [DEP0139] DeprecationWarning: Calling process.umask() with no argu

我正在使用nodejsv10.19.0 我不认为到目前为止我有任何冲突,但这是我应该担心的事情吗?我在控制台中收到以下警告消息:

You are using a pre-release version of node and things may not work as expected
当我尝试
npm安装-g npm
时,会出现以下错误:

(node:9105) [DEP0139] DeprecationWarning: Calling process.umask() with no arguments is prone to race conditions and is a potential security vulnerability.
(Use `node --trace-deprecation ...` to show where the warning was created)
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm WARN You are using a pre-release version of node and things may not work as expected

npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/olivier/.npm/_logs/2020-07-06T08_55_45_873Z-debug.log

谢谢

当您试图在无法访问的本地服务器上安装软件包时,通常会发生EACCESS错误。在命令npm install之前,尝试使用sudo更新npm。

是否使用
npm install-g npm
更新了npm?我刚刚更新了npm,但收到了大量错误消息:(发布你的错误,但我会将它们添加到我的原始帖子中,因为这里太长了。感谢为
sudo npm安装-g npm工作的npm
,但我仍然收到
npm警告,你正在使用node的预发布版本,事情可能无法按预期工作