All Questions
Tagged with windows-subsystem-for-linux npm
109
questions
-2
votes
2
answers
382
views
npm - WSL 1 is not supported. Please upgrade to WSL 2 or above
When I try to run npm command under WSL2, I get this message:
$ npm
WSL 1 is not supported. Please upgrade to WSL 2 or above.
But I'm pretty sure it's running under WSL2:
System inspection:
$ cat /...
-1
votes
1
answer
43
views
Publishing a Node.js module to npm from Windows Subsystem for Linux - handling authentication
I'm developing a Node.js module on WSL (Ubuntu on Windows). When I want to publish it I run npm adduser and that outputs
username@my-pc:/mnt/c/Users/username/workspace/demo-node$ npm adduser
npm ...
0
votes
0
answers
97
views
nodejs is installed in wsl ubuntu but 'node--version' shows 'No such file or directory'
Installed Nodejs using brew commands, which installed the node, but node commands are not running. The result is always:
'node: error while loading shared libraries: libicui18n.so.73: cannot open ...
1
vote
1
answer
342
views
Why is there a "directory not empty" error in Podman when the step "RUN npm install" is executed?
I am new to Podman, and I'm trying to run a React application with Podman using WSL Ubuntu.
Here is my Dockerfile:
#build react app
FROM node:lts-alpine
WORKDIR /home/dcaron/React-Admin\ Podman\ Test/...
0
votes
0
answers
182
views
Could not read package.json: Error: ENOENT: no such file or directory in ubuntu wsl
Issue
'\\wsl.localhost\Ubuntu-22.04\home\test\example-app'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
npm ERR! ...
0
votes
0
answers
165
views
Error: EPERM: operation not permitted, mkdir 'C:\Windows\app'
I ran on my WSL Ubuntu:
npm create vite@latest
And then I get this error:
Error: EPERM: operation not permitted, mkdir 'C:\Windows\app'
at Object.mkdirSync (node:fs:1395:3)
at Zr (file:///C:/...
0
votes
1
answer
548
views
npm watch suddenly stopped working on WSL
My project is built using Symfony and Vue. I run this project locally inside WSL 2. Whenever I run npm run watch it runs encore dev --watch and it compiles everything successfully, however, if I make ...
2
votes
0
answers
348
views
npm run build sh: 1: next: Permission denied when I run docker compose build
I am trying to build a Docker image of a react typescript project (in WSL), but in the process I'm getting this error:
`
=> ERROR [x_site 7/7] RUN npm run build ...
0
votes
1
answer
205
views
npx react-native init fails with SyntaxError
I use wsl ubuntu, if this information is important.
I tried to create a react native project using the following command
npx react-native init myApp
And it fails with the following error:
/home/...
0
votes
0
answers
56
views
Cannot add sqlite3 to a project using npm on Debian WSL
Recently I have switched from developing on bare Windows to WSL Debian. I tried to install sqlite3 in in my project using npm i sqlite3 but it results in an error. I have the latest versions of Debian,...
0
votes
1
answer
849
views
Installing NPM on WSL2 `curl failed to verify the legitimacy of the server`
Background: I couldn't run any npm commands on my WSL2 Ubuntu 22.042 LTS due to this error:
'\\wsl.localhost\Ubuntu-22.04\home\anatoly\rust\ultima\frontend'
CMD.EXE was started with the above path as ...
1
vote
0
answers
664
views
Permission denied on npm scripts when running docker container inside of WSL2 environment
I try to make a simple docker container based on official node image, but when I try to run any npm script inside of the container all I get is sh: 1: ts-node: Permission denied. The problem only ...
0
votes
2
answers
3k
views
/usr/bin/node: 1: Syntax error: ")" unexpected
I'm trying to install npm live-server on wsl (windows subsystem for linux)
after i install nodejs and npm with:
sudo apt install nodejs npm
and try to install live-server with npm:
npm install live-...
0
votes
0
answers
237
views
Changing node version using WSL and NVM
I am developing a web app on windows using nodejs (installed using wsl) and would like to switch to a specific node version due to other teams' compatibilities.
I used the nvm use statement but it did ...
0
votes
1
answer
1k
views
Unsupported Platform error when running npm install
I am trying to run npm in a windows wsl/ubuntu environment. I tried to run npm install on a project I just cloned down from github and got this error back
npm ERR! notsup Unsupported platform for @...