我正在尝试为物联网计划安装一些项目,但我遇到了同样的错误。 我已经安装了MEAN Stack 0.4.2,我想知道这是否存在问题
这是我在尝试安装browserify时遇到的错误:
npm install -g browserify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
/usr/local/lib
└─┬ browserify@12.0.1
├── assert@1.3.0
├─┬ browser-pack@6.0.1
│ ├─┬ combine-source-map@0.7.1
│ │ ├── convert-source-map@1.1.2
│ │ ├── inline-source-map@0.6.1
│ │ ├── lodash.memoize@3.0.4
│ │ └─┬ source-map@0.4.2
│ │ └── amdefine@1.0.0
│ └── umd@3.0.1
├── browser-resolve@1.11.0
├─┬ browserify-zlib@0.1.4
│ └── pako@0.2.8
├─┬ buffer@3.5.4
│ ├── base64-js@0.0.8
│ └── ieee754@1.1.6
├─┬ concat-stream@1.5.1
│ └── typedarray@0.0.6
├─┬ console-browserify@1.1.0
│ └── date-now@0.1.4
├── constants-browserify@1.0.0
├─┬ crypto-browserify@3.11.0
│ ├─┬ browserify-cipher@1.0.0
│ │ ├─┬ browserify-aes@1.0.5
│ │ │ └── buffer-xor@1.0.3
│ │ ├─┬ browserify-des@1.0.0
│ │ │ └─┬ des.js@1.0.0
│ │ │ └── minimalistic-assert@1.0.0
│ │ └── evp_bytestokey@1.0.0
等。树继续下去
npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "browserify"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/tacomeat/npm-debug.log
这是否意味着dir树中的项目安装时出现了一些错误? 或者如果没有解决错误,程序是否会运行?
我正在尝试安装的其他东西也给出了相同的错误....
我该如何解决这个问题?