Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

NPM on Ubuntu wont install any packages

$
0
0

Fresh install. I have a project. I npm i. Errors thrown. Ubuntu.

npm i gives;

npm ERR! Error: EPERM: operation not permitted, symlink '../autoprefixer/bin/autoprefixer' -> '/app/node_modules/.bin/autoprefixer'npm ERR!     at async symlink (node:internal/fs/promises:1000:10)npm ERR!     at async Promise.all (index 0)npm ERR!     at async Promise.all (index 0)npm ERR!     at async [createBinLinks] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:416:5)npm ERR!     at async Promise.allSettled (index 0)npm ERR!     at async [linkAllBins] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:397:5)npm ERR!     at async [build] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:184:7)npm ERR!     at async Arborist.rebuild (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:95:5)npm ERR!     at async [reifyPackages] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/reify.js:234:11)npm ERR!     at async Arborist.reify (/usr/share/nodejs/@npmcli/arborist/lib/arborist/reify.js:158:5)npm ERR!  Error: EPERM: operation not permitted, symlink '../autoprefixer/bin/autoprefixer' -> '/app/node_modules/.bin/autoprefixer'npm ERR!     at async symlink (node:internal/fs/promises:1000:10)npm ERR!     at async Promise.all (index 0)npm ERR!     at async Promise.all (index 0)npm ERR!     at async [createBinLinks] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:416:5)npm ERR!     at async Promise.allSettled (index 0)npm ERR!     at async [linkAllBins] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:397:5)npm ERR!     at async [build] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:184:7)npm ERR!     at async Arborist.rebuild (/usr/share/nodejs/@npmcli/arborist/lib/arborist/rebuild.js:95:5)npm ERR!     at async [reifyPackages] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/reify.js:234:11)npm ERR!     at async Arborist.reify (/usr/share/nodejs/@npmcli/arborist/lib/arborist/reify.js:158:5) {npm ERR!   errno: -1,npm ERR!   code: 'EPERM',npm ERR!   syscall: 'symlink',npm ERR!   path: '../autoprefixer/bin/autoprefixer',npm ERR!   dest: '/app/node_modules/.bin/autoprefixer'npm ERR! }npm ERR! npm ERR! The operation was rejected by your operating system.npm ERR! It is likely you do not have the permissions to access this file as the current usernpm ERR! npm ERR! If you believe this might be a permissions issue, please double-check thenpm ERR! permissions of the file and its containing directories, or try runningnpm ERR! the command again as root/Administrator.

sudo npm i gives;The same

sudo npm link gives;npm ERR! Cannot destructure property 'name' of '.for' as it is undefined.

What's this all about?

Fresh install on Ubuntu 24.10 so I'm unsure why this is happening


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>