Saturday, April 27, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1663  / 3 Years ago, thu, november 11, 2021, 6:26:08

I have a problem while run the build command from Tailwindcss (i am using tailwindcss CLI):


npx tailwindcss -i ./src/input.css -o ./public/css/output.css --watch

While running this command, it puts an output like the following:


sh: 1: tailwindcss: Permission denied

I have already reinstalled nodejs and npm. The versions are: nodejs:v18.2.0, npm:8.11.0


The folder permissions are the following:


jonas@jonas-ubuntu ~/D/G/WOWA-BAU-NEU (main)> ls -la
insgesamt 100
drwxrwxr-x 8 jonas jonas 4096 Mai 23 21:47 ./
drwxrwxr-x 3 jonas jonas 4096 Mai 25 22:53 ../
-rw-rw-r-- 1 jonas jonas 11701 Mai 23 21:47 build.css
-rw-rw-r-- 1 jonas jonas 0 Mai 23 21:47 file
drwxrwxr-x 8 jonas jonas 4096 Mai 31 14:59 .git/
drwxrwxr-x 59 jonas jonas 4096 Mai 23 21:47 node_modules/
drwxrwxr-x 2 jonas jonas 4096 Mai 23 21:47 old/
-rw-rw-r-- 1 jonas jonas 60 Mai 23 21:47 package.json
-rw-rw-r-- 1 jonas jonas 45723 Mai 23 21:47 package-lock.json
drwxrwxr-x 5 jonas jonas 4096 Mai 30 13:51 public/
drwxrwxr-x 2 jonas jonas 4096 Mai 23 21:47 src/
-rw-rw-r-- 1 jonas jonas 108 Mai 23 21:47 tailwind.config.js
drwxrwxr-x 2 jonas jonas 4096 Mai 23 21:47 .vscode/

for me they look correct to read, write and execute.


More From » command-line

 Answers
5

Had the same problem after a new installation of Ubuntu what worked for me was this solution:


npm rebuild

source: https://stackoverflow.com/questions/54831494/sh-1-cross-env-permission-denied-on-laravel-mix


[#460] Thursday, November 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ronicod

Total Points: 71
Total Questions: 111
Total Answers: 111

Location: Montenegro
Member since Fri, Dec 10, 2021
2 Years ago
ronicod questions
Sun, May 7, 23, 13:57, 1 Year ago
Sun, Jun 26, 22, 06:13, 2 Years ago
Fri, Oct 14, 22, 13:55, 2 Years ago
Sun, Sep 25, 22, 01:45, 2 Years ago
;