jude
July 25, 2019, 3:08pm
#2
Hey @AkshitV , can you try sudo npm link
and then sudo npm i -g
?
"babel-preset-flow": "^6.23.0",
"eslint": "^2.10.2",
"eslint-plugin-import": "^1.8.1",
"flow-bin": "^0.49.1",
"nock": "^9.1.6",
"nyc": "^11.4.1",
"tape": "^4.6.3",
"tape-istanbul": "^1.2.0"
},
"bin": {
"blockstack-subdomain-registrar": "./lib/index.js"
},
"scripts": {
"start": "npm run build && node lib/index.js",
"build": "babel src -d lib",
"flow": "flow",
"lint": "eslint src",
"compile-tests": "npm run lint && npm run flow && npm run build && babel tests/src -d tests/lib",
"test-inner": "npm run compile-tests && node tests/lib/index.js",
"test": "nyc --reporter=text npm run test-inner"
},
Changing the path of index.js worked (at L32 and L35),
from lib/index.js
to src/index.js
Not sure if this was the solution ?
jude
July 26, 2019, 9:20pm
#5
If lib/index.js
doesn’t exist, then it means you didn’t build the program. You need to run npm run build
first (this is standard practice when building Node.js programs).