当我尝试 npm install 或 npm install <any-package> 时,我看到 "Cannot read properties of null (reading 'edgesOut')" 并且 İ 有 package.json
When i try to npm install or npm install <any-package>, i see "Cannot read properties of null (reading 'edgesOut')" and İ have package.json
当我尝试 npm install 或 npm install 时,我看到“无法读取 null 的属性(读取 'edgesOut')”并且我有 package.json 我添加了屏幕截图,请帮助我,谢谢很多。
这是我的错误日志。
`0 verbose cli [
0 verbose cli 'C:\Program Files\nodejs\node.exe',
0 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
0 verbose cli 'install',
0 verbose cli 'react-scripts'
0 verbose cli ]
1 info using npm@8.1.2
2 info using node@v16.13.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\muhammed.eviz\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\muhammed.eviz\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 7ms
19 timing npm:load:configload Completed in 7ms
20 timing npm:load:setTitle Completed in 1ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 13ms
27 timing arborist:ctor Completed in 0ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 10ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest @reduxjs/toolkit@^1.6.2
33 http fetch GET 200 https://registry.npmjs.org/@reduxjs%2ftoolkit 444ms (cache revalidated)
34 timing idealTree Completed in 464ms
35 timing command:install Completed in 478ms
36 verbose stack TypeError: Cannot read properties of null (reading 'edgesOut')
36 verbose stack at Arborist.[loadPeerSet] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1282:38)
36 verbose stack at Arborist.[nodeFromEdge] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1103:30)
36 verbose stack at async Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:930:11)
36 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:216:7)
36 verbose stack at async Promise.all (index 1)
36 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:149:5)
36 verbose stack at async Install.install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:170:5)
37 verbose cwd C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui
38 verbose Windows_NT 10.0.19042
39 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "react-scripts"
40 verbose node v16.13.1
41 verbose npm v8.1.2
42 error Cannot read properties of null (reading 'edgesOut')
43 verbose exit 1`
error screenshot1 - when npm install
error screenshot2 - when npm install
my folder structure
如果您尝试将一些包安装到项目路径中,该路径名称中包含 non-Unicode 个字符,如下所示
ÇŞİĞÜæÂÊ...
你会得到错误。
如果您尝试在此处安装软件包,以下路径将起作用。
C:\Users\andrew\project
但是这条路径将不起作用,因为它的名称中包含 Unicode。
C:\Users\ândrew\project
编辑:解决此问题的最佳方法是使用存储卡。 (如 C:、D:、F:...)
当我尝试 npm install 或 npm install 时,我看到“无法读取 null 的属性(读取 'edgesOut')”并且我有 package.json 我添加了屏幕截图,请帮助我,谢谢很多。
这是我的错误日志。
`0 verbose cli [
0 verbose cli 'C:\Program Files\nodejs\node.exe',
0 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
0 verbose cli 'install',
0 verbose cli 'react-scripts'
0 verbose cli ]
1 info using npm@8.1.2
2 info using node@v16.13.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\muhammed.eviz\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\muhammed.eviz\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 7ms
19 timing npm:load:configload Completed in 7ms
20 timing npm:load:setTitle Completed in 1ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 13ms
27 timing arborist:ctor Completed in 0ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 10ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest @reduxjs/toolkit@^1.6.2
33 http fetch GET 200 https://registry.npmjs.org/@reduxjs%2ftoolkit 444ms (cache revalidated)
34 timing idealTree Completed in 464ms
35 timing command:install Completed in 478ms
36 verbose stack TypeError: Cannot read properties of null (reading 'edgesOut')
36 verbose stack at Arborist.[loadPeerSet] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1282:38)
36 verbose stack at Arborist.[nodeFromEdge] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1103:30)
36 verbose stack at async Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:930:11)
36 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:216:7)
36 verbose stack at async Promise.all (index 1)
36 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:149:5)
36 verbose stack at async Install.install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:170:5)
37 verbose cwd C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui
38 verbose Windows_NT 10.0.19042
39 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "react-scripts"
40 verbose node v16.13.1
41 verbose npm v8.1.2
42 error Cannot read properties of null (reading 'edgesOut')
43 verbose exit 1`
error screenshot1 - when npm install
error screenshot2 - when npm install
my folder structure
如果您尝试将一些包安装到项目路径中,该路径名称中包含 non-Unicode 个字符,如下所示
ÇŞİĞÜæÂÊ...
你会得到错误。
如果您尝试在此处安装软件包,以下路径将起作用。
C:\Users\andrew\project
但是这条路径将不起作用,因为它的名称中包含 Unicode。
C:\Users\ândrew\project
编辑:解决此问题的最佳方法是使用存储卡。 (如 C:、D:、F:...)