質問編集履歴
2
npm doctor出力結果についての更新
title
CHANGED
File without changes
|
body
CHANGED
@@ -96,6 +96,24 @@
|
|
96
96
|
一部抜粋しましたが、このあたりから同じようなエラーが出ます。
|
97
97
|
どのように対応したらこちらのエラーが改善されるのか教えていただきたいです。
|
98
98
|
|
99
|
+
### npm doctor 結果
|
100
|
+
```
|
101
|
+
npm WARN checkFilesPermission error getting info for /Users/Username/node_modules
|
102
|
+
npm WARN checkFilesPermission error getting info for /Users/Username/node_modules/.bin
|
103
|
+
Check Value Recommendation/Notes
|
104
|
+
npm ping not ok request to http://registry.npmjs.org/-/ping?write=true failed, reason: getaddrinfo ENOTFOUND proxyserver
|
105
|
+
npm -v not ok FetchError: request to http://registry.npmjs.org/npm failed, reason: getaddrinfo ENOTFOUND proxyserver
|
106
|
+
node -v not ok FetchError: request to https://nodejs.org/dist/index.json failed, reason: getaddrinfo ENOTFOUND proxyserver
|
107
|
+
npm config get registry not ok Try `npm config set registry=https://registry.npmjs.org/`
|
108
|
+
which git ok /usr/bin/git
|
109
|
+
Perms check on cached files ok
|
110
|
+
Perms check on local node_modules not ok Check the permissions of files in /Users/nakaitatsuya/node_modules (should be owned by current user)
|
111
|
+
Perms check on global node_modules ok
|
112
|
+
Perms check on local bin folder not ok Check the permissions of files in /Users/nakaitatsuya/node_modules/.bin
|
113
|
+
Perms check on global bin folder ok
|
114
|
+
Verify cache contents ok verified 0 tarballs
|
115
|
+
```
|
116
|
+
|
99
117
|
### 参考にしたサイト
|
100
118
|
[npm installで失敗したときの5つの解決方法](https://sugimotonote.com/2017/10/31/npm-install-error/)
|
101
119
|
[npm install をするとパッケージによってエラーがでる](https://teratail.com/questions/245258)
|
1
環境設定欄の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,8 +8,14 @@
|
|
8
8
|
|
9
9
|
sudo npm install -g typescript
|
10
10
|
```
|
11
|
+
|
12
|
+
### 環境
|
13
|
+
macOS
|
11
14
|
node.js v16.8.0
|
12
15
|
node.js v8.9.3 (参考にしたサイトのバージョンがこちらだった為)
|
16
|
+
自宅PC
|
17
|
+
自宅WIFI
|
18
|
+
一昨日、Typescriptのインストールに成功するも一度アンインストールしたところの反応
|
13
19
|
|
14
20
|
###### いずれのバージョンでも下記のエラーが起こります。
|
15
21
|
|