>From my reading, npm modules are searched for from current directory and if not found search the parent and repeat this pattern until the specific module is found.
So I have a project with a package.json and I run npm install and then npm run tsc and all is well. To test the above theory, I move the nod_modules directory to my home directory and run the tsc command again and I get syntax error. Not understanding this issue. I have attached the package.json file. And the errors are: ../../../../../node_modules/@types/react-select/index.d.ts(18,46): error TS1005: ',' expected. ../../../../../node_modules/@types/react-select/index.d.ts(22,31): error TS1005: ',' expected. ../../../../../node_modules/@types/react-select/index.d.ts(23,27): error TS1005: ',' expected. ../../../../../node_modules/@types/react-select/index.d.ts(24,36): error TS1005: ',' expected. ../../../../../node_modules/@types/react-select/index.d.ts(29,39): error TS1005: ',' expected. ../../../../../node_modules/@types/react-select/index.d.ts(30,39): error TS1005: ',' expected. Thoughts? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7ca2f5e5-fa6c-44e0-ab98-3c8db5ca77af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
package.json
Description: application/json
