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

npm i @types/node is not included in setup. #94

Open
bjohas opened this issue Apr 12, 2020 · 6 comments
Open

npm i @types/node is not included in setup. #94

bjohas opened this issue Apr 12, 2020 · 6 comments
Assignees
Labels

Comments

@bjohas
Copy link

bjohas commented Apr 12, 2020

Move

npm i @types/node

into setup

@retorquere
Copy link

I don't understand? If you run npm install this package is installed automatically. What problem are you experiencing?

@bjohas
Copy link
Author

bjohas commented Apr 12, 2020

Hmmm strange. I ran npm install. Then I ran

npm run build

but it complained, suggesting I should install @types/node. After running

npm i @types/node

Then

npm run build

worked.

@retorquere
Copy link

If I create an empty directory, copy the package.json there, and issue npm i, @types/node gets installed for me. What version of node/npm are you on?

@bjohas
Copy link
Author

bjohas commented Apr 12, 2020

$ npm -v
5.8.0
$ node -v
v10.15.2

.... actually there's some warnings too, saying it's not the latest, but it's what Ubuntu 19.10 has.

@bjohas
Copy link
Author

bjohas commented Apr 12, 2020

Happy for this one to be closed as well, or to pause it until I've managed to upgrade.

@retorquere
Copy link

I'm on 19.10, and if I get the standard node (10.15.2) and npm (5.8.0) and I take a fresh clone of the repo, npm i installs @types/node, and npm run build runs without errors. There must be something wrong in your environment. npm i will install devDependencies when ran from the cloned directory.

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

No branches or pull requests

2 participants