Comments (8)
Perhaps not super helpful, but a good place to start: what are the permissions for the folder you're working in? Perhaps this issue has to do with the current user not being able to create folders?
I'd try checking the folder permissions and also maybe try running the command with sudo
.
from caccl.
Hi, thanks for the quick reply.
I tried the command with sudo
but I got this:
$ sudo npm init caccl
bash: sudo: command not found
After some googling, I ran VSCode as administrator and tried again but with the same result
from caccl.
PS: I forgot to add the first lines of the error: The syntax of the command is incorrect.
I updated my original post.
from caccl.
I figured it out!
While examining the stack trace, I found these lines of code in create-caccl/lib/index.js
:
198 exec('mkdir server');
199 exec('cd server && npm init -y');
200 -> exec('mkdir server/src');
201 exec('cd server && npm i --save-dev cross-env nodemon @types/express @types/express-session');
When I change line 200 to:
198 exec('mkdir server');
199 exec('cd server && npm init -y');
200 -> exec('cd server && mkdir src');
201 exec('cd server && npm i --save-dev cross-env nodemon @types/express @types/express-session');
... it worked and the command finished succesfully!
from caccl.
mkdir --parents server/src
(or mkdir -p server/src
) would probably work too.
EDIT:
This also gives an error:
The syntax of the command is incorrect.
...
Error: Command failed: mkdir -p server/src
from caccl.
I created a pull request
from caccl.
Just realized I posted this in the wrong repo 😨
from caccl.
@renaatdemuynck thank you for submitting the PR! I appreciate your work on this :)
I've merged and re-published the create-caccl
project (now v2.1.0) so you can use the npm init caccl
command in the future. Sometimes, due to caching, you might still get an older version. If you're getting an older version, you could try clear your npm cache or use npm init caccl@latest
.
Take care! Thank you again.
from caccl.
Related Issues (17)
- How to add LTI to Canvas HOT 5
- Unable to deploy on server HOT 2
- Integration with express API server app HOT 5
- Error using init HOT 7
- Error on installing with init HOT 2
- Which operating system & node version has this been tested with? HOT 2
- Chrome local dev http vs https sameSite cookie issue HOT 3
- Course context HOT 1
- Please launch this app via Canvas. HOT 4
- Trouble setting up project with init HOT 1
- Using CACCL on Windows HOT 1
- Cookie from Production Server Doesn't Get Sent Properly on HTTPS HOT 3
- App keeps asking for permission after deployment HOT 7
- How to set up multiple launch paths? HOT 2
- What versions of LTI does this work with? HOT 6
- The eslint-parser version does not support latest eslint-parser version of airbnb HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caccl.