๋ฐ์ํ
Jupyter Lab์ Tensorboard Extension์ค์น ๋ฐฉ๋ฒ
jupyter labextension install jupyterlab_tensorboard
๋ฌธ์ ์ํฉ
๋ค์์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค.
Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details: /tmp/jupyterlab-debug-w9rhfd_1.log
ํด๋น logํ์ผ์ ๋ณด๋ ์๋์ ๊ฐ์๋ค.
Node v12.18.2
Yarn configuration loaded.
> /usr/local/lib/nodejs/node-v12.18.2-linux-x64/bin/npm pack jupyterlab_tensorboard
npm notice
npm notice ๐ฆ jupyterlab_tensorboard@0.2.1
npm notice === Tarball Contents ===
npm notice 1.1kB LICENSE
npm notice 2.2kB style/index.css
npm notice 6.2kB lib/index.js
npm notice 6.1kB lib/manager.js
npm notice 2.3kB lib/tab.js
npm notice 9.7kB lib/tensorboard.js
npm notice 1.7kB package.json
npm notice 1.6kB README.md
npm notice 2.0kB style/tensorboard.svg
npm notice 991B lib/index.d.ts
npm notice 2.9kB lib/manager.d.ts
npm notice 1.2kB lib/tab.d.ts
npm notice 6.1kB lib/tensorboard.d.ts
npm notice === Tarball Details ===
npm notice name: jupyterlab_tensorboard
npm notice version: 0.2.1
npm notice filename: jupyterlab_tensorboard-0.2.1.tgz
npm notice package size: 10.9 kB
npm notice unpacked size: 44.0 kB
npm notice shasum: 1ecd28d590c14cda82b27d76709b35f9c21121ef
npm notice integrity: sha512-SqBpyv0E2nGvz[...]ssNzdz4QNshcw==
npm notice total files: 13
npm notice
jupyterlab_tensorboard-0.2.1.tgz
Node v12.18.2
Yarn configuration loaded.
Building jupyterlab assets (build:prod:minimize)
> node /home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@jupyterlab/application/-/application-2.1.2.tgz: self signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "/home/sark/anaconda3/envs/ai/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
npm dependencies failed to install
Traceback (most recent call last):
File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
yield
File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 105, in start
command=command, app_options=app_options)
File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/commands.py", line 460, in build
command=command, clean_staging=clean_staging)
File "/home/sark/anaconda3/envs/ai/lib/python3.7/site-packages/jupyterlab/commands.py", line 652, in build
raise RuntimeError(msg)
RuntimeError: npm dependencies failed to install
Exiting application: jupyter
ํ์ฌ์์ ์ฌ์ฉํด์ ๊ทธ๋ฐ์ง ์๊พธ ssl์ธ์ฆ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ค. ์ด ๊ฒฝ์ฐ yarn์ ssl์ธ์ฆ์ ๋ฌด๋ ฅํ ์์ผ์ฃผ๋ฉด ๋์๋ค. ํน์๋ yarn์ด ์ค์น๊ฐ ์๋์ด์๋ค๋ฉด ๋ค์์ ์ค์น ๋ช ๋ น์ด๋ฅผ ์ฐธ๊ณ ํ์(๋ฆฌ๋ ์ค ๊ธฐ์ค).
NPM์ผ๋ก yarn์ค์น ๋ฐฉ๋ฒ
npm install -g yarn
๋ฌธ์ ํด๊ฒฐ ๋ฐฉ๋ฒ
yarn config set "strict-ssl" false -g
์ถ๋ ฅ ํ๋ฉด
yarn config v1.22.4
success Set "strict-ssl" to "false".
Done in 0.02s.
๋ฐ์ํ
๋๊ธ