node.js - Permission denied when running npm dist -
i´m trying deploy static site , trying run
npm run dist
which runs
copyfiles -f ./src/index.html ./src/favicon.ico ./dist
it appears if
/users/alfred/react/newreactwebpack/reactwebpack/node_modules/.bin/webpack
is locked read/write. have tried use chmod 775 , tried run via sudo. nothing helped. know wrong?
thanks!
the console out after run command:
templateapp@0.0.1 dist /users/alfred/react/newreactwebpack/reactwebpack npm run copy & webpack --env=dist sh: /users/alfred/react/newreactwebpack/reactwebpack/node_modules/.bin/webpack: permission denied npm err! darwin 16.1.0 npm err! argv "/usr/local/cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "run" "dist" npm err! node v6.2.2 npm err! npm v3.9.5 npm err! code elifecycle npm err! templateapp@0.0.1 dist: npm run copy & webpack --env=dist npm err! exit status 126 npm err! npm err! failed @ templateapp@0.0.1 dist script 'npm run copy & webpack --env=dist'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem templateapp package, npm err! not npm itself. npm err! tell author fails on system: npm err! npm run copy & webpack --env=dist npm err! can information on how open issue project with: npm err! npm bugs templateapp npm err! or if isn't available, can info via: npm err! npm owner ls templateapp npm err! there additional logging output above. npm err! please include following file support request: npm err! /users/alfred/react/newreactwebpack/reactwebpack/npm-debug.log templateapp@0.0.1 copy /users/alfred/react/newreactwebpack/reactwebpack copyfiles -f ./src/index.html ./src/favicon.ico ./dist sh: /users/alfred/react/newreactwebpack/reactwebpack/node_modules/.bin/copyfiles: permission denied npm err! darwin 16.1.0 npm err! argv "/usr/local/cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "run" "copy" npm err! node v6.2.2 npm err! npm v3.9.5 npm err! code elifecycle npm err! templateapp@0.0.1 copy: copyfiles -f ./src/index.html ./src/favicon.ico ./dist npm err! exit status 126 npm err! npm err! failed @ templateapp@0.0.1 copy script 'copyfiles -f ./src/index.html ./src/favicon.ico ./dist'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem templateapp package, npm err! not npm itself. npm err! tell author fails on system: npm err! copyfiles -f ./src/index.html ./src/favicon.ico ./dist npm err! can information on how open issue project with: npm err! npm bugs templateapp npm err! or if isn't available, can info via: npm err! npm owner ls templateapp npm err! there additional logging output above. npm err! please include following file support request: npm err! /users/alfred/react/newreactwebpack/reactwebpack/npm-debug.log
if you
chmod 775 /users/alfred/react/newreactwebpack/reactwebpack/node_modules/.bin/webpack
it change permission of /webpack
.
try chmod 775 -r /users/alfred/react
recursively change permissions folders , files under /react
if doesn't work, try same thing chown
username.
Comments
Post a Comment