Comments (5)
Try running ./scripts/test.sh
instead of npm run test, its an issue with file structures on Windows vs Unix.
from cryptodoggies.
I'm getting this =>
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'scripts/test.sh' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: scripts/test.sh
4 verbose stack at run (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:151:19)
4 verbose stack at C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:61:5
4 verbose stack at C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:115:5
4 verbose stack at C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:418:5
4 verbose stack at checkBinReferences_ (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:373:45)
4 verbose stack at final (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:416:3)
4 verbose stack at then (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:160:5)
4 verbose stack at C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:364:12
4 verbose stack at C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:532:3)
5 verbose cwd C:\Crypto\Crypto-Udemy\cryptodoggies-base
6 verbose Windows_NT 10.0.15063
7 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "scripts/test.sh"
8 verbose node v9.9.0
9 verbose npm v5.8.0
10 error missing script: scripts/test.sh
11 verbose exit [ 1, true ]
from cryptodoggies.
Are you using GitBash to run the commands? Install Git for Windows and then open GitBash (comes with git for windows). It's hard to tell from your logs if you're using the default command prompt or not sorry.
from cryptodoggies.
Thanks, I was using VSs default cmd
Now this is the problem even on running compile
from cryptodoggies.
Two things:
-
have you installed the dependencies:
- npm install -g truffle
-
How far into the course are you? Trying to run test on the empty repo probably won't work; just want to check you've progressed far enough into the course that scripts/test.sh is possible.
from cryptodoggies.
Related Issues (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 cryptodoggies.