Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript REST APIs with Express Getting to Know REST APIs A Simple API

I keep getting "npm WARN checkPermission" trying to install nodemon (which in turn doesn't allow me to run npm start).

I am currently using node v10.11.0 I am currently using npm 6.4.1

I searched the internet and many people are saying to NOT use a sudo command to change the permissions. When I perform ls -l to show me the permissions, it says my name. I confirm this when I run the "whoami" command and it matches. I am not sure why I cannot install nodemon or run npm start, even though I have permission.

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 Points

Can you post the full text of the error? Nodemon is included with the dependencies of the project, so you shouldn't have to install it globally - with or without sudo - as long as you have installed the dependencies of the project with npm install.

Sure Brendan Whiting here it is:

rest_apis_express_projectfiles :> npm install -g nodemon npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nod emon/node_modules/arr-diff npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nod emon/node_modules/array-unique npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nod emon/node_modules/binary-extensions npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nod emon/node_modules/brace-expansion npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/capture-stack-trace npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/color-convert npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/code-point-at npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/ansi-styles npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/deep-extend npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/duplexer npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/es6-promise npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/expand-range npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/filename-regex npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/for-own npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/from npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/abbrev npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/aproba npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/asn1 npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/assert-plus npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/asynckit npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/aws-sign2 npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/aws4 npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/balanced-match npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/block-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/brace-expansion npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/caseless npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/buffer-shims npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/co npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/dashdash npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/debug npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/deep-extend npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/delayed-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/combined-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/detect-libc npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/extend npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/forever-agent npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/extsprintf npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/getpass/node_modules/assert-plus npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/getpass npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/glob npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/fstream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/graceful-fs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/fstream-ignore npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/har-schema npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/hoek npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/cryptiles npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/boom npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/ini npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/is-typedarray npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/isstream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jsbn npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/ecc-jsbn npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jodid25519 npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/json-schema npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/json-stringify-safe npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jsonify npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/json-stable-stringify npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/ajv npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/har-validator npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jsprim/node_modules/assert-plus npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/mime-db npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/mime-types npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/form-data npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/oauth-sign npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/osenv npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/performance-now npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/process-nextick-args npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/punycode npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/qs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/rc npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/rimraf npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/safe-buffer npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/semver npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/sntp npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/hawk npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/string_decoder npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/readable-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/are-we-there-yet npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/npmlog npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/stringstream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/tough-cookie npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/tunnel-agent npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/tweetnacl npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/bcrypt-pbkdf npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/sshpk npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/uid-number npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/tar-pack npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/uuid npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/verror npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jsprim npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/http-signature npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/request npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/wide-align npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/tar npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/node-pre-gyp npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/glob-base npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/graceful-fs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/has-flag npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/ini npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-dotfile npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-extglob npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-glob npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-number npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-path-inside npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-posix-bracket npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-primitive npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/is-equal-shallow npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/isobject npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/kind-of npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._basecopy npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._bindcallback npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._getnative npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._isiterateecall npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.isarguments npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.isarray npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.keys npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._baseassign npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.restparam npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash._createassigner npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.assign npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lodash.defaults npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lowercase-keys npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/lru-cache npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/make-dir npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/map-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/nan npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/normalize-path npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/number-is-nan npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/object.omit npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/parse-glob npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/glob-parent npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/preserve npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/process-nextick-args npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/randomatic/node_modules/is-number npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/randomatic npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/rc npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/regex-cache npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/repeat-element npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/safe-buffer npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/registry-auth-token npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/set-immediate-shim npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/semver npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/stream-combiner npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/string_decoder npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/readable-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/supports-color npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/chalk npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/through npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/pause-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/split npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/event-stream npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/ps-tree npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fill-range npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/braces npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/expand-brackets npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/extglob npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/micromatch npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/anymatch npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/readdirp npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/which npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line/node_modules/ansi-regex npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line/node_modules/is-fullwidth-code-point npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line/node_modules/strip-ansi npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line/node_modules/string-width npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/boxen npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/write-file-atomic npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/configstore npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/chokidar npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/debug npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/undefsafe npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/update-notifier npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/dashdash/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/getpass/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/jsprim/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/fsevents/node_modules/sshpk/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/randomatic/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/widest-line/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/nodemon/node_modules/randomatic/node_modules/is-number/node_modules npm ERR! path /usr/local/lib/node_modules/nodemon/node_modules/arr-diff npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/nodemon/node_modules/arr-diff' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/nodemon/node_modules/arr-diff'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/nodemon/node_modules/arr-diff\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/nodemon/node_modules/arr-diff' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in: npm ERR! /Users/eddieharmon/.npm/_logs/2019-03-09T08_16_01_913Z-debug.log

3 Answers

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 Points

You're trying to install nodemon globally (npm install -g nodemon). In order to follow along with this project, you don't need to install nodemon globally. You just need to run npm install while you're in the same directory as the package.json file, it will install all the dependencies for this project in a node_modules folder, and then you can run npm start to start the app.

If you want to install something globally and you're getting permissions errors, using sudo is probably the right solution. You would run sudo npm install -g nodemon and it will probably ask for your password. I do recommend thinking about using npx instead, which will let you run any global npm packages without installing them. But you'll have to install npx globally, which may require using sudo.

Thanks Brendan Whiting for both your help and your patience! I think I may most likely be implementing your solution incorrectly. I am still encountering an error. While inside the project directory, when I run "npm install" I get an error which reads: npm WARN saveError ENOENT: no such file or directory, open '/Users/eddieharmon/package.json'

you just save my day man. thanks

Actually, that last one was a HUGE help, Brendan Whiting . I was in the overall folder, but there is a subfolder called "S1V4_starter_files" which actually holds it. I am good to go now. Thanks so much!!!!

Yes, I believe I am in the same directory as the package.json file. This is the part of the program I am unable to pass: https://teamtreehouse.com/library/a-simple-api.