Open ShogoHirasawa opened 3 years ago
When I do gatsby develop
ShogonoMacBook-Pro:~ shogo$ cd gatsby-starter-mountain ShogonoMacBook-Pro:gatsby-starter-mountain shogo$ 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. ShogonoMacBook-Pro:gatsby-starter-mountain shogo$ node -v v15.2.0 ShogonoMacBook-Pro:gatsby-starter-mountain shogo$ npm -v 6.14.8 ShogonoMacBook-Pro:gatsby-starter-mountain shogo$
When I do "gatsby new gatsby-starter-mountain https://github.com/artezan/gatsby-starter-mountain"
It appear this error code↓
ShogonoMacBook-Pro:~ shogo$ gatsby new gatsby-starter-mountain https://github.com/artezan/gatsby-starter-mountain info Creating new site from git: https://github.com/artezan/gatsby-starter-mountain.git Cloning into 'gatsby-starter-mountain'... remote: Enumerating objects: 60, done. remote: Counting objects: 100% (60/60), done. remote: Compressing objects: 100% (53/53), done. remote: Total 60 (delta 6), reused 49 (delta 3), pack-reused 0 Unpacking objects: 100% (60/60), done. Checking connectivity... done. success Created starter directory layout info Installing packages... npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /Users/shogo/.npm/_cacache/content-v2/sha1/1b/68 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/shogo/.npm" npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' npm WARN deprecated eslint-loader@2.2.1: This loader has been deprecated. Please use eslint-webpack-plugin npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /Users/shogo/.npm/_cacache/content-v2/sha1/a3/7d npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/shogo/.npm" npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /Users/shogo/.npm/_cacache/content-v2/sha1/1b/b9 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/shogo/.npm" npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /Users/shogo/.npm/_cacache/content-v2/sha1/1b/60 npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/shogo/.npm" npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/shogo/.npm/_logs/2020-11-16T02_01_12_737Z-debug.log error Command failed with exit code 243: npm install
Error: Command failed with exit code 243: npm install
error.js:56 makeError [lib]/[gatsby-cli]/[execa]/lib/error.js:56:11
index.js:114 handlePromise [lib]/[gatsby-cli]/[execa]/index.js:114:26
task_queues:93 processTicksAndRejections node:internal/process/task_queues:93:5
init-starter.js:142 install [lib]/[gatsby-cli]/lib/init-starter.js:142:7
init-starter.js:209 clone [lib]/[gatsby-cli]/lib/init-starter.js:209:3
init-starter.js:350 initStarter [lib]/[gatsby-cli]/lib/init-starter.js:350:5
create-cli.js:443 [lib]/[gatsby-cli]/lib/create-cli.js:443:7
ShogonoMacBook-Pro:~ shogo$