C:\Users\Jaybee\Desktop\Projects\IamJude>gatsby develop
ERROR
There was a problem loading the local develop command. Gatsby may not be installed in your site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to delete your "package-lock.json" as well.
I went future to update my npm using "npm install update" but got an error messages
*C:\Users\Jaybee\Desktop\Projects\IamJude>npm install update
npm WARN deprecated [email protected]: Critical bug fixed in v3.0.1, please upgrade to the latest version.
npm WARN deprecated [email protected]: Critical bug fixed in v3.0.1, please upgrade to the latest version.
npm ERR! path C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@typesevents\npm-shrinkwrap.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@typesevents\npm-shrinkwrap.json'
npm ERR! [OperationalError: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@typesevents\npm-shrinkwrap.json'] {
npm ERR! cause: [Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@typesevents\npm-shrinkwrap.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\events\npm-shrinkwrap.json'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! stack: "Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\events\npm-shrinkwrap.json'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\events\npm-shrinkwrap.json',
npm ERR! parent: '@types/glob'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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! C:\Users\Jaybee\AppData\Roaming\npm-cache_logs\2019-09-04T02_14_48_339Z-debug.log
C:\Users\Jaybee\Desktop\Projects\IamJude>gatsby develop
ERROR
There was a problem loading the local develop command. Gatsby may not be installed in your site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to delete your "package-lock.json" as well.
C:\Users\Jaybee\Desktop\Projects\IamJude>gatsby develop
ERROR
There was a problem loading the local develop command. Gatsby may not be installed in your site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to delete your "package-lock.json" as well.
C:\Users\Jaybee\Desktop\Projects\IamJude>npm install
npm ERR! path C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'
npm ERR! [OperationalError: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'] {
npm ERR! cause: [Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! stack: "Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json',
npm ERR! parent: 'devcert-san'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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! C:\Users\Jaybee\AppData\Roaming\npm-cache_logs\2019-09-04T02_31_48_166Z-debug.log
*
Also ran npm install and got another error message
*
C:\Users\Jaybee\Desktop\Projects\IamJude>npm install
npm ERR! path C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'
npm ERR! [OperationalError: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'] {
npm ERR! cause: [Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! stack: "Error: EPERM: operation not permitted, open 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json'",
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Users\Jaybee\Desktop\Projects\IamJude\node_modules\@types\configstore\npm-shrinkwrap.json',
npm ERR! parent: 'devcert-san'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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! C:\Users\Jaybee\AppData\Roaming\npm-cache_logs\2019-09-04T02_31_48_166Z-debug.log
*
OS: windows 10
Please i need help on this urgently
Hi there, what Node version are you using? Are you using gatsby-cli globally?
Here are a couple of things you could try:
gatsby --help, see if it has the same errornode_modules folder in your project as well as the package-lock.json file, run gatsby clean to delete the cache, run npm install and gatsby develop again.C:\Users\Jaybee\Desktop\Projects\IamJude>gatsby --version
Gatsby CLI version: 2.7.30
Gatsby version: unknown
Note: this is the Gatsby version for the site at: C:\Users\Jaybee\Desktop\Projects\IamJude
node version: v12.8.1
Ran the gatsby --help and got
C:\Users\Jaybee\Desktop\Projects\IamJude>gatsby --help
Usage: gatsby
[options] Commands:
gatsby develop Start development server. Watches files, rebuilds, and hot reloads if something changes
gatsby build Build a Gatsby project.
gatsby serve Serve previously built Gatsby site.
gatsby info Get environment information for debugging and issue reporting
gatsby clean Wipe the local gatsby environment including built assets and cache
gatsby repl Get a node repl with context of Gatsby environment, see (https://www.gatsbyjs.org/docs/gatsby-repl/)
gatsby new [rootPath] [starter] Create new Gatsby project.
gatsby plugin Useful commands relating to Gatsby plugins
gatsby telemetry Enable or disable Gatsby anonymous analytics collection.Options:
--verbose Turn on verbose output [boolean] [default: false] --no-color, --no-colors Turn off the color in output [boolean] [default: false] -h, --help Show help [boolean] -v, --version Show the version of the Gatsby CLI and the Gatsby package in the current project
deleted the node_modules and package-lock.json files and ran gatsby clean but same error appeared
Npm install worked just fine now, thank you
@marcysutton Thank you it worked for me馃槉
Most helpful comment
Hi there, what Node version are you using? Are you using gatsby-cli globally?
Here are a couple of things you could try:
gatsby --help, see if it has the same errornode_modulesfolder in your project as well as thepackage-lock.jsonfile, rungatsby cleanto delete the cache, runnpm installandgatsby developagain.