Tring to install npm package by
$ npm install
There were many errors with the code
npm ERR! code: 'EACCES'
the solution is
$npm config set unsafe-perm=true
Tring the npm install again and it succeeded.
2020年4月2日木曜日
2020年2月24日月曜日
(Mix) Unpacking tarball failed:
I got the elixir phoenix error on WSL2 as bellow.
** (Mix) Unpacking tarball failed: inner tarball error, not owner
It was not inthe linux directory but on the Windows file system accessing through the /mnt/c/ . I was guessing it was the reason.
$ mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
New:
...
...
* Updating phoenix (Hex package)
** (Mix) Unpacking tarball failed: inner tarball error, not owner
solution. Mount C: with the drvfs type.
$sudo umount /mnt/c
$sudo mount -t drvfs C: /mnt/c -o metadata
see the official blog post from microsoft
So inside mix deps.get, sometime write permissions were required and it caused the error before.
Note that this mount with drvfs should be performed each time starting WSL.
and I feel it is really slow to process compiling ...
** (Mix) Unpacking tarball failed: inner tarball error, not owner
It was not inthe linux directory but on the Windows file system accessing through the /mnt/c/ . I was guessing it was the reason.
$ mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
New:
...
...
* Updating phoenix (Hex package)
** (Mix) Unpacking tarball failed: inner tarball error, not owner
solution. Mount C: with the drvfs type.
$sudo umount /mnt/c
$sudo mount -t drvfs C: /mnt/c -o metadata
see the official blog post from microsoft
DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem. DrvFs enables WSL to mount drives with supported file systems under /mnt, such as /mnt/c, /mnt/d, etc.
So inside mix deps.get, sometime write permissions were required and it caused the error before.
Note that this mount with drvfs should be performed each time starting WSL.
and I feel it is really slow to process compiling ...
2020年2月15日土曜日
"command not found" when the tool was installed via pip
When using python as matlab like tool. jupyter or voila are necessary to be installed via pip.
be reminded that if the OS is linux, the tolls which are installed via pip (or pip3) are stored in "~/.local/bin"
so you need to add the path.
for example edit .bashrc
PATH="$HOME/.local/bin:$PATH"
I am using WSL and noticed that it's default ~/.profile has the bellow line
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
it means when bash is loaded, it checks if there is .local/bin, if so add the directory to the PATH, if not don't do anything.
My .local was created first time after using pip. so the Path was not set.
so without restart the terminal,
$source ~/.profile
would also add pip toll path
be reminded that if the OS is linux, the tolls which are installed via pip (or pip3) are stored in "~/.local/bin"
so you need to add the path.
for example edit .bashrc
PATH="$HOME/.local/bin:$PATH"
I am using WSL and noticed that it's default ~/.profile has the bellow line
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
it means when bash is loaded, it checks if there is .local/bin, if so add the directory to the PATH, if not don't do anything.
My .local was created first time after using pip. so the Path was not set.
so without restart the terminal,
$source ~/.profile
would also add pip toll path
2020年1月23日木曜日
The new Windows Terminal
The terminal software installed as the default with WSL linux distribution is not really comfortable. (for example Ubuntu)
However finally I have the better terminal for WSL.
It is Windows terminal, as the name implying this is developed by Microsoft and is open sourced.
https://github.com/microsoft/terminal
It can be installed from Micosoft store but it is still preview.
I think i want to try to build from the source though,
the preview version is already comfortable and i feel really happy with it.
However finally I have the better terminal for WSL.
It is Windows terminal, as the name implying this is developed by Microsoft and is open sourced.
https://github.com/microsoft/terminal
It can be installed from Micosoft store but it is still preview.
I think i want to try to build from the source though,
the preview version is already comfortable and i feel really happy with it.
登録:
投稿 (Atom)