安裝newman
- 打開cmd輸入: npm install -g newman
- 校驗:安裝完成后,輸入 newman -v 命令查看版本信息,檢測是否安裝成功
報錯信息
npm notice
npm notice New major version of npm available! 8.15.0 -> 9.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0
npm notice Run npm install -g npm@9.2.0 to update!
npm notice
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path E:\node\node_global\node_modules
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'E:\node\node_global\node_modules'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'E:\node\node_global\node_modules'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'E:\\node\\node_global\\node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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! E:\node\node_cache\_logs\2022-12-16T06_04_36_211Z-debug-0.log
npm ERR! Error: EPERM: operation not permitted, mkdir 'E:\node\node_global\node_modules'
這個文件夾不允許操作
解決方案:
找到該文件夾,修改權(quán)限即可解決
文章來源:http://www.zghlxwxcb.cn/news/detail-562321.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-562321.html
到了這里,關(guān)于安裝npm install XXXX報錯-4048,解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!