npm - Error: EACCES, open '/build/bundle.js' when running webpack -


unable run webpack subdirectory in project. error i'm getting: error: eacces, open '/build/bundle.js'

and webpack configuration file:

module.exports = {     entry: ['./app.ts'],     output: {         filename: 'bundle.js',         path: '/build'     },     resolve: {         extensions: ['', '.ts', '.js' ]     },     devtool: 'source-map',     module: {         loaders: [             { test: /\.ts$/, loader: 'ts?sourcemap!ts-jsx' }         ]     } }; 

trying use command: 'sudo chown -r whoami ~/.npm' didn't help.

a late answer, looks you're trying build in root of system (/build). older versions of webpack use ./build on property path. latest version of webpack (3.0 today) path: path.resolve(__dirname, 'dist'), should work.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -