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

Bakery has trouble running npm install from the parent directory, in Windows #742

Closed
alexweissman opened this issue Jun 20, 2017 · 4 comments
Labels
compatibility Compatibility issue with other framework, features confirmed bug Something isn't working installation Related to the installation process

Comments

@alexweissman
Copy link
Member

Bakery uses the --prefix flag to tell npm which directory to target for installing node dependencies.

For whatever reason, this is working in *nix but not Windows:

> npm install
npm ERR! addLocal Could not install D:\dev\userfrosting
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "--prefix" "D:\\dev\\userfrosting/
build"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\dev\userfrosting\npm-debug.log

npm docs don't seem to have any useful information.

For now, the workaround is to just run npm install directly in the build/ subdirectory.

@alexweissman alexweissman added compatibility Compatibility issue with other framework, features confirmed bug Something isn't working installation Related to the installation process labels Jun 20, 2017
@alexweissman
Copy link
Member Author

Possibly relevant: npm/npm#17100

@passta
Copy link

passta commented Jun 22, 2017

When i use the workaround everything installs fine but after that i get the same error when i run "php bakery bake"
Does the workaround fix this issue for you? Because i am not able to open the testpage after the complete installation and setup of userfrosting

@lcharette
Copy link
Member

Run bake, then from the build/ directory, try npm install then npm run uf-assets-install. After that, you don't need to run bake again.

alexweissman added a commit that referenced this issue Jun 22, 2017
seems to work fine on both Windows and *nix now
@alexweissman
Copy link
Member Author

Ok, this should be fixed with the 4.1.1-alpha release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility issue with other framework, features confirmed bug Something isn't working installation Related to the installation process
Projects
None yet
Development

No branches or pull requests

3 participants