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

Netlify CLI 2.48 is breaking dev environment #33

Open
chiubaca opened this issue May 2, 2020 · 1 comment
Open

Netlify CLI 2.48 is breaking dev environment #33

chiubaca opened this issue May 2, 2020 · 1 comment

Comments

@chiubaca
Copy link
Owner

chiubaca commented May 2, 2020

Issues appears to be related to netlify/cli#850
npm start is failing with

Error: "port" and "targetPort" options cannot have same values. Please consult the documentation for more details: https://cli.netlify.com/netlify-dev#netlifytoml-dev-block
    at module.exports.serverSettings (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/src/utils/detect-server.js:108:13)
    at DevCommand.run (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/src/commands/dev/index.js:413:26)    at async DevCommand._run (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/command/lib/command.js:43:20)
    at async Config.runCommand (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/config/lib/config.js:172:9)
    at async Main.run (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/command/lib/main.js:22:9)
    at async Main._run (C:/Users/alexc/AppData/Roaming/npm/node_modules/netlify-cli/node_modules/@oclif/command/lib/command.js:43:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `netlify dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\alexc\AppData\Roaming\npm-cache\_logs\2020-05-02T14_12_46_890Z-debug.log
@chiubaca
Copy link
Owner Author

chiubaca commented May 2, 2020

work around - npm install [email protected] -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant