Hye guys. im new to WSL2 and nixshell and currently facing a problem accessing permission. Im really appreciates it if anyone would like to help me clarifying with this error.
the error goes:
[nix-shell:/mnt/c/Users/User/projects/developer-exercises/1.basic/0.zome-functions/exercise/tests]$ npm install && npm run build
npm WARN email@example.com No description
npm WARN firstname.lastname@example.org No repository field.
audited 179 packages in 2.219s
41 packages are looking for funding
npm fund for details
found 1 high severity vulnerability
npm audit fix to fix them, or
npm audit for details
email@example.com build /mnt/c/Users/User/projects/developer-exercises/1.basic/0.zome-functions/exercise/tests
cd … && CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to mmap. Could not write data: Permission denied; class=Os (2)
warning: spurious network error (1 tries remaining): failed to mmap. Could not write data: Permission denied; class=Os (2)
error: failed to get
chrono as a dependency of package
exercise v0.0.1 (/mnt/c/Users/User/projects/developer-exercises/1.basic/0.zome-functions/exercise/zomes/exercise)
failed to fetch
failed to mmap. Could not write data: Permission denied; class=Os (2)
npm ERR! code ELIFECYCLE
npm ERR! errno 101
npm ERR! firstname.lastname@example.org build:
cd .. && CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
npm ERR! Exit status 101
npm ERR! Failed at the email@example.com build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/najidnadri/.npm/_logs/2021-07-17T06_12_47_377Z-debug.log