linux 运行 webpack,Webpack不在Linux上安装

最近我改变了我的环境从Windows 10到backbox linux 4.5.1,但我试图用npm几次安装webpack。它永远不会安装它给出这些错误。任何帮助?Webpack不在Linux上安装

verbose tar unpack /home/dove/.npm/webpack/1.12.13/package.tgz

34 silly lockFile 27155615-tar-usr-lib-node-modules-webpack tar:///usr/lib/node_modules/webpack

35 verbose lock tar:///usr/lib/node_modules/webpack /home/dove/.npm/27155615-tar-usr-lib-node-modules-webpack.lock

36 silly lockFile 5c48f9fd--npm-webpack-1-12-13-package-tgz tar:///home/dove/.npm/webpack/1.12.13/package.tgz

37 verbose lock tar:///home/dove/.npm/webpack/1.12.13/package.tgz /home/dove/.npm/5c48f9fd--npm-webpack-1-12-13-package-tgz.lock

38 silly gunzTarPerm modes [ '775', '664' ]

39 error Error: EACCES, mkdir '/usr/lib/node_modules/webpack'

39 error { [Error: EACCES, mkdir '/usr/lib/node_modules/webpack']

39 error errno: 3,

39 error code: 'EACCES',

39 error path: '/usr/lib/node_modules/webpack',

39 error fstream_type: 'Directory',

39 error fstream_path: '/usr/lib/node_modules/webpack',

39 error fstream_class: 'DirWriter',

39 error fstream_stack:

39 error [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',

39 error '/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',

39 error 'Object.oncomplete (fs.js:108:15)' ] }

40 error Please try running this command again as root/Administrator.

41 error System Linux 4.2.0-30-generic

42 error command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "[email protected]"

43 error cwd /home/dove/projects/yulu

44 error node -v v0.10.37

45 error npm -v 1.4.28

46 error path /usr/lib/node_modules/webpack

47 error fstream_path /usr/lib/node_modules/webpack

48 error fstream_type Directory

49 error fstream_class DirWriter

50 error code EACCES

51 error errno 3

52 error stack Error: EACCES, mkdir '/usr/lib/node_modules/webpack'

53 error fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23

53 error fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53

53 error fstream_stack Object.oncomplete (fs.js:108:15)

54 verbose exit [ 3, true ]

+0

我发现我想我不得不更新我的节点和NPM –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值