npm install -g npmbox
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
[..................] - loadRequestedDeps: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecat[..................] - loadRequestedDeps: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecat[..................] - loadRequestedDeps: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecat[..................] | loadRequestedDeps: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecat[..................] | loadRequestedDeps: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecatnpm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@3.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\app\Nodist\bin\npmbox -> C:\app\Nodist\bin\node_modules\npmbox\bin\npmbox
C:\app\Nodist\bin\npmunbox -> C:\app\Nodist\bin\node_modules\npmbox\bin\npmunbox
+ npmbox@4.2.1
added 340 packages from 807 contributors in 38.962s
npm install -g monocle-ts
npm WARN monocle-ts@2.2.0 requires a peer of fp-ts@^2.0.0 but none is installed. You must install peer dependencies yourself.
+ monocle-ts@2.2.0
added 1 package from 1 contributor in 0.574s
npm install -g newtype-ts
npm WARN newtype-ts@0.3.4 requires a peer of fp-ts@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN newtype-ts@0.3.4 requires a peer of monocle-ts@^2.0.0 but none is installed. You must install peer dependencies yourself.
+ newtype-ts@0.3.4
added 1 package from 1 contributor in 1.558s
npm install -g swagger
npm WARN deprecated swagger-editor@2.10.5: No longer maintained, please upgrade to swagger-editor@3.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated URIjs@1.16.1: package renamed to "urijs" (lower-case), please update accordingly
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
C:\app\Nodist\bin\swagger-project -> C:\app\Nodist\bin\node_modules\swagger\bin\swagger-project.js
C:\app\Nodist\bin\swagger -> C:\app\Nodist\bin\node_modules\swagger\bin\swagger.js
npm WARN lifecycle The node binary used for scripts is C:\app\Nodist\bin\node.exe but npm is using C:\app\Nodist\v-x64\12.18.2\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> core-js@2.6.11 postinstall C:\app\Nodist\bin\node_modules\swagger\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> nodemon@1.19.4 postinstall C:\app\Nodist\bin\node_modules\swagger\node_modules\nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\swagger\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ swagger@0.7.5
added 435 packages from 526 contributors in 60.942s
npm install -g swagger-ui
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN lifecycle The node binary used for scripts is C:\app\Nodist\bin\node.exe but npm is using C:\app\Nodist\v-x64\12.18.2\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> core-js@2.6.11 postinstall C:\app\Nodist\bin\node_modules\swagger-ui\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
+ swagger-ui@3.28.0
added 121 packages from 270 contributors in 22.336s
npm install -g @stoplight/prism-cli
C:\app\Nodist\bin\prism -> C:\app\Nodist\bin\node_modules\@stoplight\prism-cli\dist\index.js
npm WARN lifecycle The node binary used for scripts is C:\app\Nodist\bin\node.exe but npm is using C:\app\Nodist\v-x64\12.18.2\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> fast-xml-parser@3.17.4 postinstall C:\app\Nodist\bin\node_modules\@stoplight\prism-cli\node_modules\fast-xml-parser
> node tasks/postinstall.js || exit 0
Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\@stoplight\prism-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN io-ts-types@0.5.7 requires a peer of monocle-ts@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN io-ts-types@0.5.7 requires a peer of newtype-ts@^0.3.2 but none is installed. You must install peer dependencies yourself.
+ @stoplight/prism-cli@3.3.5
added 295 packages from 305 contributors in 36.207s
npm cache --force clean
npm WARN using --force I sure hope you know what you are doing.
ダメでした。。。ハマりました。
ローカルインストールしたいのに、ネット接続してしまう。。。
npm install --global --cache ./.npmbox.cache --optional --cache-min 99999999999 --shrinkwrap false npmbox
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/npmbox failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\workdir\.npmbox.cache\_logs\2020-07-06T22_22_58_493Z-debug.log
ログはこんな感じ↓
7 silly fetchPackageMetaData error for npmbox@latest request to https://registry.npmjs.org/npmbox failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 187ms
10 verbose type system
11 verbose stack FetchError: request to https://registry.npmjs.org/npmbox failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
11 verbose stack at ClientRequest.<anonymous> (C:\app\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
11 verbose stack at ClientRequest.emit (events.js:315:20)
11 verbose stack at TLSSocket.socketErrorListener (_http_client.js:426:9)
11 verbose stack at TLSSocket.emit (events.js:315:20)
11 verbose stack at emitErrorNT (internal/streams/destroy.js:92:8)
11 verbose stack at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm install --global --cache ./.npmbox.cache --optional --cache-min 99999999999 --shrinkwrap false npmbox
npm ERR! code E404
npm ERR! 404 Not Found - GET http://127.0.0.1/npmbox
npm ERR! 404
npm ERR! 404 'npmbox@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
はい。もちろんレジストリを作っていないので、404 Not Foundですね。
では、元に戻します。
prefix=C:\app\Nodist\bin
試しに再実行してみるか↓
<pre class="command-line" data-prompt="PS C:\workdir>" data-output="2-16"><code class="language-powershell">npm install --global --cache ./.npmbox.cache --optional --cache-min 99999999999 --shrinkwrap false npmbox
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
[..................] \ fetchMetadata: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecated a[..................] \ fetchMetadata: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecated a[..................] \ fetchMetadata: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecated a[..................] \ fetchMetadata: WARN deprecated tar.gz@1.0.2: ⚠️ WARNING ⚠️ tar.gz module has been deprecat
:
:
:</code></pre>
えっ、えっ。たまたまなのか、ネット接続なしで動作しました。
(その後、再現できませんでした)
npm install --global --cache ./.npmbox.cache --optional --cache-min 99999999999 --shrinkwrap false npmbox
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
:
C:\app\Nodist\bin\npmbox -> C:\app\Nodist\bin\node_modules\npmbox\bin\npmbox
C:\app\Nodist\bin\npmunbox -> C:\app\Nodist\bin\node_modules\npmbox\bin\npmunbox
+ npmbox@4.2.1
added 334 packages from 813 contributors in 26.34s
インストール済パッケージ一覧の確認を確認してみると
npm ls -g --depth=0
C:\app\Nodist\bin
`-- npmbox@4.2.1
npmbox がインストールされているっぽい。
最新パッケージ化チェックするかは、.npmrcファイルの更新日時を見ている???
わかりませんが、とりあえず、npmbox がインストールできました。
インストール先は .npmrcのプレフィックス設定を変えると変更できるようです。
prefix=C:\app\nodejs\bin
:
C:\app\nodejs\bin\npmunbox -> C:\app\nodejs\bin\node_modules\npmbox\bin\npmunbox
C:\app\nodejs\bin\npmbox -> C:\app\nodejs\bin\node_modules\npmbox\bin\npmbox
+ npmbox@4.2.1
added 334 packages from 813 contributors in 25.806s