You are Here:
Check out our NEW Linux Lite USB'S on the Shop page...they're awesome!



problems using npm install in vscode

Author (Read 2570 times)

0 Members and 2 Guests are viewing this topic.

Re: problems using npm install in vscode
« Reply #3 on: August 31, 2022, 07:06:35 PM »
 

nonzero

  • New to Forums
  • *
  • 2
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 6.0 64bit
sudo isn't a magic solution there, as preferably you want to be the owner of the directory - so use alternatives - yarn, pnpm, npx, even bun - there's plenty of prudent options. You may have a missing path in your .npmrc ( .profile)
« Last Edit: August 31, 2022, 07:13:26 PM by nonzero »
 

Re: problems using npm install in vscode
« Reply #2 on: August 30, 2022, 01:32:11 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1838
    Posts
  • Reputation: 283
  • Linux Lite Member

  • Linux Lite: 5.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x

@stephan84

after typing npm install in my vscode terminal for running a cloned react project i get:

npm ERR! code EPERM
....
....
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 user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/stephan/.npm/_logs/2022-08-28T13_22_21_771Z-debug-0.log

can anyone help me?
thanks for any support :045:


As suggested in the message.. try as admin -- put sudo in front of your command
Code: [Select]
sudo npm install

else become root and try OR ensure the user has access/permissions to the specified folder....
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

problems using npm install in vscode
« Reply #1 on: August 28, 2022, 09:38:09 AM »
 

stephan84

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 6.0 64bit
after typing npm install in my vscode terminal for running a cloned react project i get:

npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /media/stephan/WDD 500/udemyCoding/react_the_complete_guide/02-starting-project/node_modules/.bin/parser
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/media/stephan/WDD 500/udemyCoding/react_the_complete_guide/02-starting-project/node_modules/.bin/parser'
npm ERR!  [Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/media/stephan/WDD 500/udemyCoding/react_the_complete_guide/02-starting-project/node_modules/.bin/parser'] {
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../@babel/parser/bin/babel-parser.js',
npm ERR!   dest: '/media/stephan/WDD 500/udemyCoding/react_the_complete_guide/02-starting-project/node_modules/.bin/parser'
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 user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/stephan/.npm/_logs/2022-08-28T13_22_21_771Z-debug-0.log

can anyone help me?
thanks for any support :045:
 

 

-->
X Close Ad

Check out our NEW Linux Lite USB'S on the Shop page...they're awesome!