Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to create new gatsby file #157

Closed
adolfojbarreto opened this issue Feb 26, 2016 · 2 comments
Closed

Not able to create new gatsby file #157

adolfojbarreto opened this issue Feb 26, 2016 · 2 comments

Comments

@adolfojbarreto
Copy link

Hi, I tried to create a new file and got the following:

C:\WINDOWS\system32>npm install -g gatsby
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\react-router\node_modules\history
node ./npm-scripts/postinstall.js

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\react-router
node ./npm-scripts/postinstall.js

npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync
node postinstall

\

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\postcss-cssnext\node_modules\caniuse-api
node generator.js

caniuse-api: Generation ok

npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

[email protected] install C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\node-sass
node scripts/install.js

Binary downloaded and installed at C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\node-sass\vendor\win32-x64-46\binding.node

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\node-sass
node scripts/build.js

C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\node-sass\vendor\win32-x64-46\binding.node exists.
testing binary.
Binary is fine; exiting.

[email protected] postinstall C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\history
node ./npm-scripts/postinstall.js

C:\Users\Adolfo Barreto\AppData\Roaming\npm\gatsby -> C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\bin\cli.js
[email protected] C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

C:\WINDOWS\system32>cd c:/users/adolfo barreto/documents

c:\Users\Adolfo Barreto\Documents>gatsby new my-test-gatsby-site
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: EPERM: operation not permitted, open 'C:\Users\Adolfo Barreto.babel.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at save (C:\Users\Adolfo Barreto\AppData\Roaming\npm\node_modules\gatsby\node_modules\babel-core\lib\api\register\cache.js:35:19)
at nextTickCallbackWith0Args (node.js:415:9)
at process._tickCallback (node.js:344:13)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:134:18)
at node.js:962:3

Thanks,
Adolfo

@KyleAMathews
Copy link
Contributor

Hey, this is a permissions issue (search for EPERM here: https://nodejs.org/api/errors.html) not a Gatsby bug.

@adolfojbarreto
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants