You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sheabang should be added at first line of file: ./bin/launch_local_dynamo.js
#!/usr/bin/env node
Steps to reproduce error:
mkdir test-local-dynamo
cd test-local-dynamo
npm init -y
npm install local-dynamo -S
# next command edit script "test" in package.json to start local-dynamo
sed -i '' -e 's/"test": ".*"[^"]*$/"test": "local-dynamo --port=8000"/' package.json
npm test
last command produces error:
./node_modules/.bin/local-dynamo: line 1: //: is a directory
./node_modules/.bin/local-dynamo: line 3: /Applications: is a directory
./node_modules/.bin/local-dynamo: line 4: node_modules: command not found
./node_modules/.bin/local-dynamo: line 5: node_modules/: is a directory
./node_modules/.bin/local-dynamo: line 7: syntax error near unexpected token `('
./node_modules/.bin/local-dynamo: line 7: `var flags = require('flags')'
npm ERR! Test failed. See above for more details.
Workaround:
add under "scripts" in package.json entry:
Sheabang should be added at first line of file:
./bin/launch_local_dynamo.js
#!/usr/bin/env node
Steps to reproduce error:
last command produces error:
Workaround:
add under "scripts" in
package.json
entry:manually or by command:
reinstall packages:
npm ci
and run database:
npm test
The text was updated successfully, but these errors were encountered: