简体   繁体   English

我在 mac 上安装 nodemon 时遇到这个错误

[英]im getting this erros while installing nodemon on mac

npm WARN config global --global , --local are deprecated. npm WARN config global --global--local已弃用。 Use --location=global instead.请改用--location=global npm ERR: code EACCES npm ERR: syscall mkdir npm ERR, path /usr/local/lib/node_modules/nodemon npm ERR: errno -13 npm ERR: Error, EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nodemon' npm ERR: [Error, EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nodemon'] { npm ERR: errno. npm ERR: code EACCES npm ERR: syscall mkdir npm ERR, path /usr/local/lib/node_modules/nodemon npm ERR: errno -13 npm ERR: Error, EACCES: permission denied, mkdir '/usr/local/lib/node_modules /nodemon' npm ERR:[错误,EACCES:权限被拒绝,mkdir '/usr/local/lib/node_modules/nodemon'] { npm ERR:errno。 -13, npm ERR, code. -13,npm ERR,代码。 'EACCES' npm ERR syscall 'mkdir' npm ERR path '/usr/local/lib/node_modules/nodemon' 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 'EACCES' npm ERR syscall 'mkdir' npm ERR path '/usr/local/lib/node_modules/nodemon' 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. npm ERR:此运行的完整日志可在 npm ERR 中找到。 /Users/vitoromano/ npm/_logs/2022-07-27T21_40_08_581Z-debug-0 log /Users/vitoromano/npm/_logs/2022-07-27T21_40_08_581Z-debug-0 日志

It is basically used inside a nodejs try running inside the project so that server can run.它基本上是在一个nodejs内部使用,尝试在项目内部运行,以便服务器可以运行。 first Do npm init then run nodemon首先做 npm init 然后运行 ​​nodemon

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM