-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to build with error: bash: "/usr/local/share/nvm/nvm.sh: No such file or directory" #1078
Comments
@prathameshzarkar9 Can you help investigate this? thanks! |
Hi @SouthWest7 With this configuration I unable to reproduce the error. |
The content of my devcontainer.json as follows:
|
@SouthWest7 Still I unable to reproduce the error with your devcontainer.json, Let me debug more specific to Node feature... |
When I install mannually it also occurs, so the problem has no relationship with devcontainer, I copy the file to the directory on my laptop, the install script works. |
I got the problem it's in the install script. I gave a ran on a container to install node using nvm root@33c865f97ec1:/# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash => Appending nvm source string to /root/.bashrc export NVM_DIR="$HOME/.nvm" Please check the bold lines it's been clearly mentioned either open a new terminal else source nvm.sh |
@samruddhikhandale |
When I try to open the folder in devcontainer, feature "Node.js (via nvm), yarn and pnpm" (ghcr.io/devcontainers/features/node) failed to install!
logs follows:
The text was updated successfully, but these errors were encountered: