Skip to content

Commit

Permalink
feat: try again Nouvelle initialisation de l'application #47
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Aug 31, 2024
1 parent c0a0eaf commit 1a9a422
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ export const initSudoFixNpmDirRights = (
mainLog.debug(`Fix User rights on NPM Dir with sudo.`)
const toReturned = new ConfigData('fix_npm_user_rights')
return new Promise<ConfigData>((resolve) => {
// const cmd = `chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}`
// const cmd = `chown -R $(whoami) $(npm config get prefix)/lib/node_modules`
// const cmd = `chown -R root:admin $(npm config get prefix)/lib/node_modules`
const cmd = `chown -R $USER $(npm config get prefix)/lib/node_modules && echo "Done"`
const cmd = `chown -R $USER $(npm config get prefix)/{lib/node_modules,bin,share} && echo "Done"`
sudoPrompt.exec(
cmd,
{ name: 'Fix user permissions on Node' },
Expand Down

0 comments on commit 1a9a422

Please sign in to comment.